A084559 Smallest a(n) > n such that concatenation of numbers from n to a(n) is a prime or 0 if no such number exists.
3, 19, 7, 17, 7, 13, 9, 187
Offset: 2
Examples
a(4) = 7 because 4567 is a prime.
Links
- Eric Weisstein's World of Mathematics, Consecutive Number Sequences.
- Eric Weisstein's World of Mathematics, Smarandache Prime
Crossrefs
Programs
-
PARI
A084559(n,N=n,T=10^logint(n,10))=while(T*=10,for(m=n+1,n=T-1,ispseudoprime(N=N*T+m)&&return(m))) \\ M. F. Hasler, Feb 22 2021
Extensions
Edited by Max Alekseyev, Jan 28 2012
a(4) corrected by Daniel Suteu, Jun 16 2019
Escape clause added to definition by Chai Wah Wu, Feb 22 2021
Comments