Sieve of Eratosthenes

1
2
#!/usr/bin/env python
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
A Python implementation of Sieve of Eratosthenes with functions to find all prime numbers between 1 & n, and to check whether input number is a prime or not.

3 Responses

Isn't it the code to "disable security settings" from the film "Ex_Machina"? :)
@Leszek Lesiewicz Doubt it. I wrote this ~4 years ago.
You're right :)
http://goo.gl/v9nmki

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.