Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hackinscience
hkis-exercises
Commits
5e0f8dab
Verified
Commit
5e0f8dab
authored
Mar 16, 2022
by
Julien Palard
Browse files
first primes: link to the doc and i18n.
parent
df43c705
Pipeline
#496036
failed with stages
in 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
exercises/print-the-first-prime-number-after-the-given-one/wording_en.md
View file @
5e0f8dab
Provide a script that computes, then prints the first prime number
greater than 100000000.
greater than
`
100
_
000
_
000
`
.
## Advice
You may use
`itertools.count()`
, and you may need
`sys.exit()`
.
You may use
[
`itertools.count()`
](
https://docs.python.org/3/library/itertools.html#itertools.count
)
,
and you may need
[
`sys.exit()`
](
https://docs.python.org/3/library/sys.html#sys.exit
)
.
exercises/print-the-first-prime-number-after-the-given-one/wording_fr.md
View file @
5e0f8dab
Provide a script that computes, then prints the first prime number
greater than 100000000.
Rédigez un script qui calcule puis affiche le premier nombre premier plus grand que
`100_000_000`
.
```
bash
$
python3 solution.py
666
```
Yes
, 666
is not the right answer :-
)
(Non
, 666
n'est pas la bonne réponse.
)
##
Advice
##
Conseils
You may use
`itertools.count()`
, and you may need
`sys.exit()`
.
Vous pouvez utiliser
[
`itertools.count()`
](
https://docs.python.org/fr/3/library/itertools.html#itertools.count
)
,
et peut être aussi
[
`sys.exit()`
](
https://docs.python.org/fr/3/library/sys.html#sys.exit
)
.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment