login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A059017
Smallest n-digit prime whose square is a concatenation of two n-digit primes (no leading zeros allowed), 0 if no such prime.
0
5, 73, 337, 5449, 32569, 316259, 3165713, 31630007, 316229827, 3162291731, 31622777629, 316227771019, 3162277660313, 31622776613849, 316227766047293, 3162277660170061, 31622776601693377, 316227766016857441
OFFSET
1,1
EXAMPLE
E.g., 5449^2 = 29691601 = (2969)(1601).
PROG
(PARI) { a(n) = local(t, m, s); t = 10^(n-1); while(1, t=nextprime(t+1); m = nextprime(sqrtint(t*10^n)+1); s=m^2; if( s\10^n!=t, next); if( (s%10^n) > 10^(n-1) && ispseudoprime(s%10^n), return(m); ); ) } \\ Max Alekseyev, Apr 23 2010
CROSSREFS
Sequence in context: A070526 A070530 A248046 * A099667 A108444 A155662
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Jan 15 2001
EXTENSIONS
More terms from Max Alekseyev, Apr 23 2010
STATUS
approved

  NODES
orte 1
see 1
Story 1