cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A233464 a(n) is the smallest natural number m such that 10^10^k + m is prime for k = 0, 1, ...., n.

Original entry on oeis.org

1, 19, 5641, 1289743, 2578966671
Offset: 0

Views

Author

Farideh Firoozbakht, Mar 13 2014

Keywords

Examples

			29 (=10^1+19) and 10000000019 (=10^10+19) are primes so a(1)=19.
		

Crossrefs

Programs

  • PARI
    okm(m, n) = {for (k=0, n, if (!isprime(10^10^k + m), return (0)););return (1);}
    a(n) = {m = 0; while (!okm(m, n), m++); m;} \\ Michel Marcus, Mar 16 2014

Extensions

a(4) from Giovanni Resta, Mar 14 2014