proposed
approved
proposed
approved
editing
proposed
(PARI) f(n, d, digs, spare) = local(p, r, found); if (!d, return(n)); found = 0; for (i = 0, 9, p = n + i*10^digs; if ((i && isprime(p)) || spare, r = f(p, d - 1, digs + 1, spare - 1 + (i && isprime(p)))); if (r && (r < found || !found), found = r)); found; a(n) = local(i, r); i = 0; while (1, r = f(0, n + i, 0, i); if (r, return(r), i++)); (Wasserman)
a(n) = local(i, r); i = 0; while (1, r = f(0, n + i, 0, i); if (r, return(r), i++)); \\ David Wasserman, Aug 12 2005
approved
editing
_Amarnath Murthy (amarnath_murthy(AT)yahoo.com), _, Oct 15 2003
We exclude substrings that begin with 0, so a(3) is not 103. - _David Wasserman (wasserma(AT)spawar.navy.mil), _, Aug 12 2005
More terms from _David Wasserman (wasserma(AT)spawar.navy.mil), _, Aug 12 2005
a(4) = 2113 1223 in which the four substrings containing the LSD (3,13,113,211323,223,1223) are primes.
base,nonn,new
a(n) = smallest prime in which n substrings containing the least significant digit are primeprimes.
a(4) = 2113 in which the four substrings containing the LSD (3,13,113,2113) are primeprimes.
base,nonn,new
2, 13, 113, 2113, 1223, 12113, 612113121283, 1237547, 12184967, 124536947, 1219861613, 12181833347, 121339693967, 1213536676883, 12673876537547, 121848768729173, 1275463876537547, 12429121339693967, 165678739293946997
We exclude substrings that begin with 0, so a(3) is not 103. - David Wasserman (wasserma(AT)spawar.navy.mil), Aug 12 2005
(PARI) f(n, d, digs, spare) = local(p, r, found); if (!d, return(n)); found = 0; for (i = 0, 9, p = n + i*10^digs; if ((i && isprime(p)) || spare, r = f(p, d - 1, digs + 1, spare - 1 + (i && isprime(p)))); if (r && (r < found || !found), found = r)); found; a(n) = local(i, r); i = 0; while (1, r = f(0, n + i, 0, i); if (r, return(r), i++)); (Wasserman)
base,hard,more,nonn,new
base,nonn
More terms from David Wasserman (wasserma(AT)spawar.navy.mil), Aug 12 2005
a(n) = smallest prime in which n substrings containing the least significant digit are prime.
2, 13, 113, 2113, 12113, 612113
1,1
a(n) need not contain a(n-1) as a substring.
a(4) = 2113 in which the four substrings containing the LSD (3,13,113,2113) are prime.
Cf. A088603.
base,hard,more,nonn
Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Oct 15 2003
approved