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:50

# grrr, 圧倒的にPythonに不利な設定ですね!
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 -