You are here: Home Blog Comments Re:キミならどう書く 2.0 - ROUND 1 -

Personal tools

Re:キミならどう書く 2.0 - ROUND 1 -

Posted by Anonymous User at 2006-06-16 18:47

def primegen(maximum):
v = range(2, maximum)
while v:
p = v[0]
v = filter(int(p).__rmod__, v)
yield p

Parent entry キミならどう書く 2.0 - ROUND 1 -