|
|
A241570
|
|
Primes of the form: (concatenation of first n positive integers) - 1.
|
|
1
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Next term, if it exists, has more than 1000 digits.
|
|
LINKS
|
|
|
EXAMPLE
|
11 in this sequence because 12-1 is prime.
|
|
MATHEMATICA
|
Select[Table[FromDigits[Flatten[IntegerDigits[Range[n]]]] - 1, {n, 1, 100}], PrimeQ] (* after Bruno Berselli *)
|
|
PROG
|
(Magma) c:=0; for d in [1..3] do m:=10^d; for n in [m div 10..m-1] do c:=c*m+n; t:=c-1; if IsPrime(t) then t; end if; end for; end for; // after Jon E. Schoenfield
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more,bref
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|