OFFSET
1,2
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=0, then 101*k + 997 = 997 (prime).
If k=110, then 101*k + 997 = 12107 (prime).
MATHEMATICA
Select[Range[520], PrimeQ[101#+997]&] (* Stefano Spezia, Aug 02 2024 *)
PROG
(Magma) [n: n in [0..100000] | IsPrime(101*n + 997)]; // Vincenzo Librandi, Nov 13 2010
(PARI) is(n)=isprime(101*n+997) \\ Charles R Greathouse IV, Jun 06 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, May 06 2005
STATUS
approved