A072712 Primes p such that p divides the (right) concatenation of all numbers from 1 to p written in base 10 (most significant digit on left).
2, 3, 5, 8167, 371321
Offset: 1
Examples
p=17 is not a term since 1234567891011121314151617 is not divisible by 17.
Links
- Carlos Rivera, Puzzle 190. A follow up for the puzzle 188, The Prime Puzzles & Problems Connection.
Programs
-
PARI
p=""; n=1; while(n<10^4, p=concat(p,Str(n)); if(eval(p)%n==0&&isprime(n), print1(n,", ")); n++) \\ Derek Orr, Oct 04 2014
Extensions
Another term from Jeff Heleen, Oct 11 2009
Comments