[go: up one dir, main page]

login
A062335
Primes starting and ending with 9.
3
919, 929, 9029, 9049, 9059, 9109, 9199, 9209, 9239, 9319, 9349, 9419, 9439, 9479, 9539, 9619, 9629, 9649, 9679, 9689, 9719, 9739, 9749, 9769, 9829, 9839, 9859, 9929, 9949, 90019, 90059, 90089, 90149, 90199, 90239, 90289, 90359, 90379, 90439
OFFSET
1,1
LINKS
EXAMPLE
9679 is a member, as it is a prime and the first and the last digits are both 9.
MATHEMATICA
fl9Q[n_]:=IntegerDigits[n][[1]]==IntegerDigits[n][[-1]]==9; Select[ Prime[ Range[10000]], fl9Q] (* Harvey P. Dale, Dec 31 2019 *)
PROG
(PARI) { default(primelimit, 10^6); n=-1; t=log(10); forprime (p=2, 10^6, if ((p-10*(p\10)) == 9 && (p\10^(log(p)\t)) == 9, write("b062335.txt", n++, " ", p); if (n==1000, break)) ) } \\ Harry J. Smith, Aug 05 2009
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Amarnath Murthy, Jun 21 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Jun 29 2001
Offset changed by Andrew Howroyd, Sep 17 2024
STATUS
approved