So I’ve been taking an interest in prime numbers recently and how to generate them, so I wrote a up a quick implementation of The Sieve of Eratosthenes in Python. Here it is:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
For those interested in more curious facts about prime numbers a brilliant talk is given by the great Terrence Tao. It’s a bit lengthy but well worth your time.