login
A048413
Primes whose consecutive digits differ by 1 or 2.
8
2, 3, 5, 7, 13, 23, 31, 43, 53, 67, 79, 89, 97, 101, 131, 313, 353, 421, 431, 457, 467, 643, 653, 757, 787, 797, 1013, 1021, 1201, 1213, 1231, 1321, 2131, 2357, 2423, 2467, 3121, 3457, 3467, 4201, 4231, 4243, 4357, 4567, 4643, 4657, 4679, 5323, 5431, 5653
OFFSET
1,1
LINKS
MATHEMATICA
cdQ[n_]:=Module[{idnd=Abs[Differences[IntegerDigits[n]]]}, Max[idnd]<3 && Min[idnd]>0]; Select[Prime[Range[800]], cdQ] (* Harvey P. Dale, Sep 29 2012 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Apr 15 1999
STATUS
approved