OFFSET
1,1
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
PROG
(PARI) A070277(n) = if(!(n%2) || !(n%5), isprime(n)*n, my(k=10^#digits(n)); forprime(p=n, oo, if(0==((p-n)%k), return(p)))); \\ Antti Karttunen, Feb 06 2019
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, May 07 2002
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Sep 26 2002
STATUS
approved