Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 266 Bytes
from math import sqrt
def factorsOfSquare(n):
c = 0
i = 2
sn = n*n
while i<sn:
if sn%i == 0:
c += 1
i += 1
print n,c
return c + 1
i = 2
while factorsOfSquare(i) < 1000:
i += 2
else:
print i