login
A086298
Numbers n such that 1-2n+3n^2 is prime.
1
1, 4, 6, 10, 12, 18, 22, 28, 40, 42, 46, 52, 54, 64, 70, 78, 84, 88, 90, 94, 96, 112, 120, 130, 132, 136, 138, 142, 154, 160, 174, 216, 222, 226, 232, 238, 240, 276, 282, 288, 292, 294, 306, 310, 316, 328, 336, 358, 360, 370, 396, 400, 408, 424, 436, 438, 466
OFFSET
1,2
LINKS
MATHEMATICA
Select[Range[0, 600], PrimeQ[1 - 2*# + 3*#^2]&] (* Vincenzo Librandi, Jan 08 2013 *)
PROG
(Magma) [n: n in [0..550] | IsPrime(1-2*n+3*n^2)]; // Vincenzo Librandi, Jan 08 2013
(PARI) is(n)=isprime(1-2*n+3*n^2) \\ Charles R Greathouse IV, Jun 12 2017
CROSSREFS
Sequence in context: A243864 A024995 A343703 * A144761 A295523 A122171
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Aug 28 2003
STATUS
approved