OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..5000
EXAMPLE
a(1)=2 because prime(2^3) - 2 = 19 - 2 = 17 (a prime),
a(2)=4 because prime(4^3) - 4 = 311 - 4 = 307 (a prime),
a(3)=12 because prime(12^3) - 12 = 14741 (a prime), ...
MAPLE
ts_pra_3:=proc(n) local i, ans; ans := [ ]: for i from 1 to n do if (isprime(ithprime(i^(3))-i)) then ans := [ op(ans), i ]: fi: od; RETURN(ans) end: ts_pra_3(200);
MATHEMATICA
Select[Range[1100], PrimeQ[Prime[#^3]-#]&] (* Harvey P. Dale, Mar 24 2023 *)
PROG
(PARI) is(k) = isprime(prime(k^3)-k); \\ Jinyuan Wang, Apr 10 2020
CROSSREFS
KEYWORD
nonn,less
AUTHOR
Jani Melik, Aug 01 2007
EXTENSIONS
a(18)-a(32) from Jinyuan Wang, Apr 10 2020
a(33)-a(44) from Tyler NeSmith, Apr 15 2022
a(45)-a(54) from Jon E. Schoenfield, Apr 15 2022
STATUS
approved