login
Numbers n such that 5*n + 12 is prime.
0

%I #15 Oct 28 2024 18:47:50

%S 1,5,7,11,17,19,23,25,29,31,37,43,49,53,59,61,65,67,71,77,89,91,95,

%T 107,109,113,115,119,121,127,133,143,149,155,157,163,169,173,175,179,

%U 185,187,191,193,197,215,217,221,235,241,245,253,257,259,263,271,283,287

%N Numbers n such that 5*n + 12 is prime.

%e If n=109 then 5*n + 12 = 557 (prime).

%t Select[Range[300], PrimeQ[5 # + 12] &]

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

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

%Y Cf. A024894, A087505, A024897, A081759.

%K nonn,easy

%O 1,2

%A _Parthasarathy Nambi_, Oct 26 2005