OFFSET
0,1
COMMENTS
9973 is the largest four-digit prime and 10007 is the smallest five-digit prime.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Tanya Khovanova, Recursive Sequences
Chris Caldwell, The first 100,008 primes.
Index entries for linear recurrences with constant coefficients, signature (2,-1).
EXAMPLE
If n=14, then 9973*14 + 10007 = 149629 (a prime).
MATHEMATICA
9973*Range[0, 30]+10007 (* or *) LinearRecurrence[{2, -1}, {10007, 19980}, 40] (* Harvey P. Dale, Sep 02 2015 *)
PROG
(Magma) [9973*n + 10007: n in [0..50]]; // Vincenzo Librandi, Jul 14 2011
(PARI) a(n)=9973*n+10007 \\ Charles R Greathouse IV, Oct 16 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, Jan 18 2005
EXTENSIONS
Extended by Ray Chandler, Jan 25 2005
STATUS
approved