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.

A212881 Numbers k such that k^3 - prime(k) is prime.

This page as a plain text file.
%I A212881 #23 Jun 02 2023 01:12:08
%S A212881 2,10,38,42,44,50,66,74,80,90,160,178,186,190,220,224,228,234,238,240,
%T A212881 242,256,260,270,272,280,298,342,366,368,376,380,396,400,430,462,474,
%U A212881 476,486,504,518,526,590,596,598,610,628,668,670,672,696,700,702,714
%N A212881 Numbers k such that k^3 - prime(k) is prime.
%C A212881 All terms are trivially even.
%H A212881 Harvey P. Dale, <a href="/A212881/b212881.txt">Table of n, a(n) for n = 1..1000</a>
%t A212881 Reap[Do[If[PrimeQ[n^3-Prime[n]],Sow[n]],{n,2,1000,2}]][[2,1]]
%t A212881 Select[2*Range[400],PrimeQ[#^3-Prime[#]]&] (* _Harvey P. Dale_, Apr 28 2022 *)
%o A212881 (Magma) [n: n in [1..400]|IsPrime(n^3-NthPrime(n))];
%Y A212881 Cf. A064712, A212883.
%K A212881 nonn
%O A212881 1,1
%A A212881 _Zak Seidov_, May 29 2012