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!)
A139780 Average of twin primes of the form p1^3 + p2^2, where p1 < p2 are twin primes. 4
38318210940, 68484878220, 143165125680, 6353554336290, 75041090138100, 91851874324800, 116366750976990, 118525130067690, 368776631152800, 374826155288910, 431041855258500, 585102141663000, 767853933976740, 834602006112360, 845499208101600, 1560061877051100 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
38318210940 = 3371^3 + 3373^2 is a term since both (3371, 3373) and (38318210939, 38318210941) are twin primes.
MATHEMATICA
a={}; Do[p1=Prime[n]; p2=Prime[n+1]; pp=p1^3+p2^2; If[(p2-p1)==2&&PrimeQ[pp-1]&&PrimeQ[pp+1], AppendTo[a, pp]], {n, 10^4}]; Print[a];
Select[#[[1]]^3+#[[2]]^2&/@Select[Partition[Prime[Range[15000]], 2, 1], #[[2]] - #[[1]]==2&], AllTrue[#+{1, -1}, PrimeQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jul 01 2021 *)
PROG
(Magma) [q:k in [1..10000]|IsPrime((NthPrime(k)+2)) and IsPrime(q-1)and IsPrime(q+1) where q is NthPrime(k)^3+ (NthPrime(k)+2)^2]; // Marius A. Burtea, Dec 22 2019
CROSSREFS
Sequence in context: A178221 A038832 A038821 * A234072 A112446 A295460
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Amiram Eldar, Dec 22 2019
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 April 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)