import re n=a=b=1 s="(" while n<1e4:s+="|%d"%b;a,b=b,a+b;re.match(s[:66]+")+$",str(n))and print(n);n+=1
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page