Prime Number Generator
This script finds prime numbers and stores them in files (100,000 per file). When it is opened it looks for previously stored data and if it finds any it will continue from where it left off.
The largest primes found with this code are:
- 7,463,770,037 (Jared VanderVeen)
- 903,640,459 (Oliver Muir)
To run this programme you must first create the directory "primes" in the same folder as the script.
This programme uses an infinite loop to find primes, hence to end it you must create an error (i.e. pressing CTRL-C).
Error catching is used when opening files, thus pressing CTRL-C during this period will lead to errors. Do not press CTRL-C until the programme begins to find primes (i.e. when dots start appearing)..
plain text file (.txt)
python file (.py)
Please submit any bugs/suggestions here: