login
Numbers n such that 179*n + 181 is prime.
0

%I #14 Sep 08 2022 08:45:19

%S 0,8,14,20,38,42,62,78,84,92,102,104,120,150,158,162,164,168,174,180,

%T 192,204,224,228,230,242,252,272,278,294,300,308,344,348,360,378,384,

%U 390,402,404,410,414,432,434,438,440,444,458,474,494,500,504,528,554

%N Numbers n such that 179*n + 181 is prime.

%C 179 and 181 are twin primes.

%H Chris Caldwell, <a href="http://www.utm.edu/research/primes/lists/small/1ktwins.txt">The First 1,008 Twin Primes</a>.

%e If n=92 then 179*n + 181 = 16649 (prime).

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

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

%K nonn,easy

%O 1,2

%A _Parthasarathy Nambi_, Jun 02 2005