login
Numbers n such that 1021*n + 1019 is prime.
0

%I #14 Apr 03 2023 10:36:10

%S 0,2,8,14,24,30,44,50,72,78,80,84,92,110,114,128,138,164,182,230,234,

%T 258,260,264,278,318,320,330,332,338,348,360,374,384,398,414,422,440,

%U 462,488,492,498,500,512,524,530,534,554,558,572,594,602,612,624,632

%N Numbers n such that 1021*n + 1019 is prime.

%C 1019 and 1021 are twin primes.

%H Chris Caldwell, <a href="https://t5k.org/lists/small/1ktwins.txt">The First 1,008 Twin Primes</a>.

%e If n=78, then 1021*n + 1019 = 80657 (prime).

%o (Magma) [n: n in [0..100000] | IsPrime(1021*n + 1019)] // _Vincenzo Librandi_, Nov 13 2010

%o (PARI) is(n)=isprime(1021*n+1019) \\ _Charles R Greathouse IV_, Jun 13 2017

%K nonn,easy

%O 1,2

%A _Parthasarathy Nambi_, Jun 07 2005