A024892 Numbers k such that 3*k+1 is prime.
2, 4, 6, 10, 12, 14, 20, 22, 24, 26, 32, 34, 36, 42, 46, 50, 52, 54, 60, 64, 66, 70, 74, 76, 80, 90, 92, 94, 102, 104, 110, 112, 116, 122, 124, 126, 132, 136, 140, 144, 146, 152, 154, 162, 166, 174, 180, 182, 190, 192, 200, 202, 204, 206, 210, 214, 220, 224, 230, 236, 242, 244, 246
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Programs
-
Magma
[n: n in [1..1000] | IsPrime(3*n+1)]; // Vincenzo Librandi, Nov 20 2010
-
Mathematica
Select[Range[250], PrimeQ[3# + 1] &] (* Vincenzo Librandi, Sep 25 2012 *)
-
PARI
is(n)=isprime(3*n+1) \\ Charles R Greathouse IV, Feb 17 2017
Comments