OFFSET
1,1
COMMENTS
101 and 997 are the smallest and largest three-digit primes.
LINKS
Daniel Starodubtsev, Table of n, a(n) for n = 1..10000
EXAMPLE
If k=10, then 101*k - 997 = 13 (prime).
If k=66, then 101*k - 997 = 5669 (prime).
MATHEMATICA
Select[Range[5, 500], PrimeQ[101#-997]&] (* Harvey P. Dale, Sep 01 2021 *)
PROG
(Magma) [n: n in [10..100000] | IsPrime(101*n - 997)]; // Vincenzo Librandi, Nov 13 2010
(PARI) is(n)=isprime(101*n-997) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, May 13 2005
STATUS
approved