login
A108342
Numbers n such that 1009*n - 997 is prime.
1
2, 20, 26, 36, 42, 44, 62, 102, 116, 140, 144, 146, 174, 180, 182, 194, 216, 282, 284, 300, 314, 330, 336, 372, 386, 440, 450, 462, 476, 480, 494, 506, 510, 512, 516, 572, 576, 590, 596, 606, 636, 642, 650, 680, 702, 722, 732, 746, 756, 770, 776, 782, 792
OFFSET
1,1
COMMENTS
997 and 1009 are primes.
LINKS
EXAMPLE
If n=2 then 1009*n - 997 = 1021 (prime).
If n=140 then 1009*n - 997 = 140263 (prime).
MATHEMATICA
Select[Range[1000], PrimeQ[1009#-997]&] (* Harvey P. Dale, Jul 29 2014 *)
PROG
(Magma) [n: n in [1..100000] | IsPrime(1009*n - 997)] - Vincenzo Librandi, Nov 13 2010
(PARI) is(n)=isprime(1009*n-997) \\ Charles R Greathouse IV, Jun 12 2017
CROSSREFS
Sequence in context: A145681 A108061 A154546 * A136903 A078460 A059208
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, Jun 30 2005
STATUS
approved