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!)
A330438 Numbers k such that k^2-2 and k^3-2 are prime. 1
9, 15, 19, 27, 37, 121, 135, 145, 211, 217, 259, 265, 267, 279, 355, 357, 387, 391, 435, 489, 525, 561, 615, 621, 727, 951, 987, 1029, 1119, 1141, 1177, 1251, 1287, 1357, 1435, 1491, 1561, 1617, 1717, 1785, 1819, 1839, 1875, 1909, 1989, 2001, 2077, 2107, 2211 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Intersection of A028870 and A038599.
LINKS
EXAMPLE
a(1) = 9: 9^2 - 2 = 79; 9^3 - 2 = 727; both results are prime.
a(2) = 15: 15^2 - 2 = 223; 15^3 - 2 = 3373; both results are prime.
MAPLE
filter:= k -> isprime(k^2-2) and isprime(k^3-2):
select(filter, [$2..10000]); # Robert Israel, Dec 24 2019
MATHEMATICA
Select[Range[10000], PrimeQ[#^3 - 2] && PrimeQ[#^2 - 2] &]
PROG
(Magma) [n : n in [1 .. 100] | IsPrime (n^2 - 2) and IsPrime (n^3 - 2)];
CROSSREFS
Sequence in context: A161163 A058211 A038599 * A321342 A338599 A333312
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Dec 14 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 19 02:04 EDT 2024. Contains 371782 sequences. (Running on oeis4.)