OFFSET
1,1
COMMENTS
1009 and 9973 are the smallest and largest of four-digit primes.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
If k=32, then 9973*k - 1009 = 318127 (prime).
If k=116, then 9973*k - 1009 = 1155859 (prime).
MATHEMATICA
Select[Range[1000], PrimeQ[9973#-1009]&] (* Harvey P. Dale, Jan 29 2013 *)
PROG
(Magma) [n: n in [1..100000] | IsPrime(9973*n - 1009)]; // Vincenzo Librandi, Nov 13 2010
(PARI) is(n)=isprime(9973*n-1009) \\ Charles R Greathouse IV, Jun 12 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, May 13 2005
STATUS
approved