A154264 Nonnegative numbers n such that 9*n^2 - 10*n + 3 is prime.
0, 1, 2, 4, 8, 14, 22, 26, 28, 34, 38, 44, 46, 50, 52, 68, 70, 82, 86, 88, 100, 112, 118, 122, 124, 140, 146, 148, 152, 158, 170, 182, 188, 190, 196, 212, 224, 232, 236, 248, 256, 278, 280, 284, 286, 290, 292, 298, 310, 314, 334, 356, 374, 376, 380, 388, 394, 400
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Crossrefs
Cf. A154261.
Programs
-
Magma
[n: n in [0..400] | IsPrime(9*n^2-10*n+3)]; // Vincenzo Librandi, Sep 24 2012
-
Mathematica
lst={};Do[p=9*n^2-10*n+3;If[PrimeQ[p],AppendTo[lst,n]],{n,0,7!}];lst (* Vladimir Joseph Stephan Orlovsky, Feb 21 2009 *)
-
PARI
is(n)=isprime(9*n^2-10*n+3) \\ Charles R Greathouse IV, May 22 2017
Extensions
Edited by Robert Hochberg, Jun 21 2010
Comments