EKG Sequence by Sven

s=[2]*159
j=m=n=1
while 1:
 j+=1
 if j>53:j=2;m+=1
 if~-n*(m%j|n%j)<s[m]-1:print m;n=m;s[m]=j=m=1

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page