#!ruby -rmathn p$.if/^(\d+,1,?){3}$/=~$..prime_division*','while 764>$.+=1