A099722 From a 2-dimensional walk involving primes.
11, 17, 23, 41, 47, 67, 83, 103, 157, 257, 277, 3407, 3517, 3547
Offset: 1
Examples
.................. 13 ...... 13 ......... 13 .............. 13 ................. 7 -> 7 : 11 -> 7 : 11 -> 7 : 11,17 -> 7 : 11,17 : 19 -> 7 : 11,17,23 : 19 -> ...
Crossrefs
Cf. A096447.
Programs
-
PARI
upto(lim)=my(x=-1,y=0,p=7);forprime(q=11,lim,if(p%5>2,if(p%5==3,y--,x--),if(p%5==1,y++,x++));if(!x&&!y,print1(q", "));p=q) \\ Charles R Greathouse IV, Oct 18 2011
Extensions
a(8)-a(14) from Sean A. Irvine, Oct 18 2011
Comments