OFFSET
1,2
COMMENTS
The terms greater than 10^18 are obtained assuming that nextprime(n) < n + (log n)^2, which is known to hold at least for 4 < n < 10^18.
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..40 (terms < 10^36)
Carlos Rivera, Puzzle 786
EXAMPLE
The number 7 is in the sequence since the next two primes are 11 and 13 and 1113 is divisible by 7.
MATHEMATICA
Select[Range[10^5], Divisible[ FromDigits[ Join@@ IntegerDigits@ NextPrime[#, {1, 2}]], #]&]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Giovanni Resta, May 23 2015
STATUS
approved