Verified Commit 5e0f8dab authored by Julien Palard's avatar Julien Palard
Browse files

first primes: link to the doc and i18n.

parent df43c705
Pipeline #496036 failed with stages
in 50 seconds
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).
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).
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment