cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A154938 Numbers k such that k^6 - 2 and k^6 + 2 are both primes.

This page as a plain text file.
%I A154938 #23 Jun 22 2025 14:15:01
%S A154938 195,213,231,657,1563,1749,2967,3597,3627,4263,4887,6867,6993,7257,
%T A154938 7725,9045,9201,9717,11595,12579,13029,14145,14259,14367,15837,16131,
%U A154938 16581,17259,19905,19917,21081,21711,23127,24435,24921,28299,28707
%N A154938 Numbers k such that k^6 - 2 and k^6 + 2 are both primes.
%H A154938 Amiram Eldar, <a href="/A154938/b154938.txt">Table of n, a(n) for n = 1..10000</a>
%t A154938 lst={};Do[p1=n^6-2;p2=n^6+2;If[PrimeQ[p1]&&PrimeQ[p2],AppendTo[lst,n]],{n,0,9!}];lst
%t A154938 Select[Range[30000],AllTrue[#^6+{2,-2},PrimeQ]&] (* _Harvey P. Dale_, Jun 21 2025 *)
%o A154938 (Magma) [n: n in [1..500] | IsPrime(n^6-2) and IsPrime(n^6+2)]; // _Vincenzo Librandi_, Nov 26 2010
%Y A154938 Intersection of A154933 and A216978.
%Y A154938 Cf. A028870, A038599, A154831, A154832, A154833, A154834, A154934, A154935, A154936, A071351.
%K A154938 nonn
%O A154938 1,1
%A A154938 _Vladimir Joseph Stephan Orlovsky_, Jan 17 2009