|
2010-07-11
, 17:07
|
|
Posts: 844 |
Thanked: 521 times |
Joined on Jan 2009
@ UK southampton
|
#12
|
|
2010-07-11
, 17:45
|
|
Posts: 1,107 |
Thanked: 720 times |
Joined on Mar 2007
@ Germany
|
#13
|
|
2010-07-11
, 18:06
|
|
Posts: 1,107 |
Thanked: 720 times |
Joined on Mar 2007
@ Germany
|
#14
|
|
2010-07-11
, 18:13
|
Posts: 187 |
Thanked: 345 times |
Joined on Nov 2009
|
#15
|
The Following User Says Thank You to shapeshifter For This Useful Post: | ||
|
2010-07-12
, 06:33
|
|
Posts: 762 |
Thanked: 395 times |
Joined on Jan 2010
@ Helsinki
|
#16
|
|
2010-07-12
, 08:05
|
Posts: 557 |
Thanked: 370 times |
Joined on Apr 2010
|
#17
|
|
2010-07-12
, 19:41
|
Posts: 187 |
Thanked: 345 times |
Joined on Nov 2009
|
#18
|
The Following User Says Thank You to shapeshifter For This Useful Post: | ||
|
2010-07-14
, 17:24
|
Posts: 187 |
Thanked: 345 times |
Joined on Nov 2009
|
#19
|
|
2010-07-19
, 08:48
|
Posts: 145 |
Thanked: 91 times |
Joined on Jun 2010
|
#20
|
def is_prime(self, n): '''check if integer n is a prime''' for x in range(2, int(n**0.5)+1): if n % x == 0: return False return True
def is_prime(self, n): '''check if integer n is a prime''' if n == 2: return True for x in range(2, int(n**0.5)+1): if n % x == 0: return False return True
New version, also fixed some minor bugs and improved bahaviour when using it on different devices that use a different resolution.
edit: oops, noticed one of the scores is slightly off-center. Fixed for the next release
Author of:
Last edited by shapeshifter; 2010-07-11 at 16:33.