login
Numbers n such that 10^n - 99 is prime.
0

%I #14 Jan 17 2019 13:44:08

%S 4,5,7,27,91,248,347,501,535,767,2002,2581,2677,8158,15977,20666,

%T 23854,72730,86816

%N Numbers n such that 10^n - 99 is prime.

%C The next term, if it exists, is > 100000.

%C See Kamada link - primecount.txt for terms, primesize.txt for discovery details including probable or proved primes - search on "99901".

%H Makoto Kamada, <a href="https://stdkmd.net/nrr/prime/">List of near-repdigit-related prime numbers</a>.

%H <a href="/index/Pri#Pri_rep">Index entries for primes involving repunits</a>.

%e 10^4 - 99 = 9901 which is a prime number.

%t nMax=1000; Do[If[PrimeQ[10^n-99], Print[n]], {n, nMax}]

%o (PARI) is(n)=ispseudoprime(10^n-99) \\ _Charles R Greathouse IV_, Jun 13 2017

%Y Cf. A108330, A108328.

%K more,nonn

%O 1,1

%A _Robert Price_, Dec 21 2010

%E a(18-19)=72730,86816 from _Robert Price_, May 29 2011