OFFSET
1,1
COMMENTS
101 and 997 are the smallest and largest three-digit primes.
EXAMPLE
If k=6, then 997*k - 101 = 5881 (prime).
If k=144, then 997*k - 101 = 143467 (prime).
MATHEMATICA
Select[Range[800], PrimeQ[997#-101]&] (* Harvey P. Dale, Oct 01 2012 *)
PROG
(Magma) [n: n in [1..100000] | IsPrime(997*n - 101)]; // Vincenzo Librandi, Nov 13 2010
(PARI) is(n)=isprime(997*n-101) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, May 13 2005
STATUS
approved