Program Dump #3 – Fun With Numbers (and Python!)

I decided to mess around with Python for a while, and ended up making number-related programs.  Namely, these scripts tested for number happiness and primality, generated happy and/or prime numbers, and generated prime numbers until the program received an interrupt.  The prime number generator utilizes the Sieve of Eratosthenes if I implemented it correctly.

Keep in mind that none of this stuff is optimized–I did each of these in a few minutes or so, just for fun and all that.

Fun With Numbers: Download

Keep in mind that after you unpack the .zip, you’ll need Python installed on your system and then run the script from the terminal.

Leave a Reply

Your email address will not be published. Required fields are marked *