OFFSET
1,2
COMMENTS
997 is the largest three-digit prime and 1009 is the smallest four-digit prime.
EXAMPLE
If k=6, then 997*6 + 1009 = 6991 (prime).
If k=10, then 997*10 + 1009 = 10979 (prime).
If k=12, then 997*12 + 1009 = 12973 (prime).
MATHEMATICA
Select[Range[0, 700], PrimeQ[997#+1009]&] (* Harvey P. Dale, Jun 29 2011 *)
PROG
(Magma) [ n: n in [0..700] | IsPrime(997*n + 1009) ]; // Vincenzo Librandi, Feb 04 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Parthasarathy Nambi, Jan 21 2005
EXTENSIONS
Extended by Ray Chandler, Jan 25 2005
STATUS
approved