OFFSET
1,1
COMMENTS
Do these numbers continue to infinity?
EXAMPLE
999983 and 1000003 are the closest primes surrounding 10^6. they both have the same last digit so 6 is in the table.
MATHEMATICA
Select[Range[246], Mod[NextPrime[10^#], 10]==Mod[NextPrime[10^#, -1], 10]&] (* James C. McMahon, Sep 13 2024 *)
PROG
(PARI) g(n) = for(j=1, n, x=precprime(10^j); y=nextprime(10^j); if(x%10==y%10, print1(j", ")))
CROSSREFS
KEYWORD
easy,nonn,base,less
AUTHOR
Cino Hilliard, May 22 2006
STATUS
approved