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!)
A269840 Lesser of twin primes where both are the sum of 3 nonzero squares. 2
17, 41, 59, 107, 137, 179, 227, 281, 347, 419, 521, 569, 617, 641, 659, 809, 827, 857, 881, 1019, 1049, 1091, 1289, 1427, 1451, 1481, 1619, 1667, 1697, 1721, 1787, 1931, 2027, 2081, 2129, 2267, 2339, 2657, 2729, 2801, 2969, 3251, 3257, 3299, 3329, 3371, 3467, 3539 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
17 is a term because 17 = 2^2 + 2^2 + 3^2 and 19 = 1^2 + 3^2 + 3^2.
41 is a term because 41 = 3^2 + 4^2 + 4^2 and 43 = 3^2 + 3^2 + 5^2.
59 is a term because 59 = 3^2 + 5^2 + 5^2 and 61 = 3^2 + 4^2 + 6^2.
PROG
(PARI) isA000408(n) = my(a, b) ; a=1 ; while(a^2+1<n, b=1 ; while(b<=a && a^2+b^2<n, if(issquare(n-a^2-b^2), return(1) ) ; b++ ; ) ; a++ ; ) ; return(0) ;
t(n, p=3) = { while( p+2 < (p=nextprime( p+1 )) || n-->0, ); p-2}
for(n=1, 1e2, if(isA000408(t(n)) && isA000408(t(n)+2), print1(t(n), ", ")));
CROSSREFS
Sequence in context: A104043 A076330 A087658 * A237659 A350052 A078655
KEYWORD
nonn
AUTHOR
Altug Alkan, Mar 13 2016
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 July 6 10:30 EDT 2024. Contains 374039 sequences. (Running on oeis4.)