login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A283867 Numbers n such that 30*n^2 - 1 and 30*n^2 + 1 are (twin) primes. 2
1, 3, 10, 14, 18, 38, 62, 73, 116, 118, 143, 183, 221, 232, 242, 330, 333, 413, 430, 455, 470, 496, 507, 533, 538, 556, 606, 622, 645, 675, 687, 701, 720, 777, 792, 819, 846, 879, 881, 895, 913, 1000, 1019, 1030, 1092, 1155, 1214, 1238, 1253, 1261, 1313, 1337, 1350, 1407, 1418, 1429, 1431 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
a(n) >> n log^2 n. - Charles R Greathouse IV, Mar 17 2017
EXAMPLE
3 is in this sequence because 30*3^2 - 1 = 269 and 30*3^2 + 1 = 271 are twin primes.
MATHEMATICA
Select[Range@ 1431, PrimeQ[30*#^2 + 1] && PrimeQ[30*#^2 - 1] &] (* Indranil Ghosh, Mar 17 2017 *)
PROG
(Magma) [n: n in [1..1500] | IsPrime(30*n^2-1) and IsPrime(30*n^2+1)];
(PARI) is(n)=isprime(30*n^2-1) && isprime(30*n^2+1) \\ Charles R Greathouse IV, Mar 17 2017
(Python)
from sympy import isprime
[i for i in range(1, 1501) if isprime(30*i**2 - 1) and isprime(30*i**2 + 1)] # Indranil Ghosh, Mar 17 2017
CROSSREFS
Sequence in context: A190706 A146309 A288169 * A085726 A287115 A063796
KEYWORD
nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 29 11:14 EDT 2024. Contains 371278 sequences. (Running on oeis4.)