OFFSET
0,1
COMMENTS
REFERENCES
Carlos Rivera's primepuzzles.net, Puzzle 246.
LINKS
Carlos Rivera, Puzzle 246. The worm
FORMULA
Select prime numbers having the same first and last digits; if the uniform absolute value of successive digit differences is 3, add to sequence.
EXAMPLE
a(1)=74747 because the number is prime, has identical first and last digits and abs(7-4)=3; abs(4-7)=3; abs(7-4)=3 and abs(4-7)=3. In this number, the worm is 7.
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Enoch Haga, Dec 25 2003
EXTENSIONS
More terms from David Wasserman, Sep 09 2005
STATUS
approved