Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-sync instructions #881

Merged
merged 1 commit into from
Mar 9, 2025
Merged

Auto-sync instructions #881

merged 1 commit into from
Mar 9, 2025

Conversation

mk-mxp
Copy link
Contributor

@mk-mxp mk-mxp commented Mar 1, 2025

Auto-sync with problem specifications.

For sieve there was a lengthy discussion on the forum about the "using the proper algorithm" note, namely about the use of division or modulo for the prime detection. But I don't think we should change our example.php to match that - it uses modulo to detect multiples instead of looping over multiples of a prime to remove them.

@mk-mxp mk-mxp added x:action/sync Sync content with its latest version x:knowledge/none No existing Exercism knowledge required x:module/practice-exercise Work on Practice Exercises x:type/content Work on content (e.g. exercises, concepts) x:size/tiny Tiny amount of work x:rep/tiny Tiny amount of reputation labels Mar 1, 2025
@mk-mxp mk-mxp self-assigned this Mar 1, 2025
@homersimpsons
Copy link
Contributor

(I will review this tonight or tomorrow)

@homersimpsons
Copy link
Contributor

But I don't think we should change our example.php to match that - it uses modulo to detect multiples instead of looping over multiples of a prime to remove them.

This file is in fact used to prove that the exercise is solvable. I think some student may read it though. I'm fine keeping it like this.

@mk-mxp mk-mxp merged commit 1da70db into exercism:main Mar 9, 2025
13 checks passed
@mk-mxp mk-mxp deleted the auto-sync branch March 9, 2025 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:action/sync Sync content with its latest version x:knowledge/none No existing Exercism knowledge required x:module/practice-exercise Work on Practice Exercises x:rep/tiny Tiny amount of reputation x:size/tiny Tiny amount of work x:type/content Work on content (e.g. exercises, concepts)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants