Primer
Python script that generates prime numbers, saves them to a file, and allows you to continue from where you left off.
About Primer
On the 25th of November 2019 I was watching a video about the importance of prime numbers for encryption. This spiked my interest, and after learning how critical prime numbers are for the world we live in, I really wanted to start generating my own.
The intention wasn’t to find the next biggest prime number, Python is definitely the wrong language to use for that purpose, but instead just to see if I could continuously generate prime numbers, store them all to a file, and continue where I left off next time I start the script.
I immediately made a head start on getting the basic generation working, and the following morning created a GitHub repository for the project and pushed what I had created so far.
It’s non-destructive nature suprised my teachers, and they were all rather impressed how Primer performed and the statistics it provided.
So, what can it do?
Primer is a portable prime number generator which can pickup where you left off on any OS you run it on.
Features
- Automatic Updates
- Cross-compatible with Windows & Unix
- Generate prime numbers
- Save prime numbers as plain text to Primer.txt
- Save generation statistics such as total calculations & number of primes found to Primer_config.json
Installation
Download the latest release directly onto the target machine, or run on a USB.
Requirements
- Python 3.6+
If you are planning to use a python install from the USB, please create a shortcut to run the script using the Python install on the flash drive.
- Windows
Screenshots
This script was written and tested using Python 3.8 on Windows 10 and may not function as intended using different versions of Python