login
Numbers n such that 6*n^2 + 6*n + 1 is prime.
0

%I #16 Sep 12 2024 16:06:29

%S 1,2,3,5,7,8,9,10,12,13,18,19,20,22,23,30,31,32,33,35,36,38,41,42,43,

%T 45,46,47,51,55,58,60,65,67,73,74,77,78,84,86,88,93,95,97,100,101,104,

%U 106,107,109,112,117,120,123,124,126,129,130,132,134,135,137,143,148,151

%N Numbers n such that 6*n^2 + 6*n + 1 is prime.

%e If n=43 then 6*n^2 + 6*n + 1 = 11353 (prime).

%o (Magma) [n: n in [0..200] |IsPrime(6*n^2+6*n+1)]; // _Vincenzo Librandi_, Nov 13 2010

%o (PARI) is(n)=isprime(6*n^2+6*n+1) \\ _Charles R Greathouse IV_, Jun 13 2017

%Y Cf. A111251, A090563.

%K nonn,easy

%O 1,2

%A _Parthasarathy Nambi_, Nov 01 2005