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!)
A304856 Numbers k such that prime(k)^k - 2 is prime. 1
2, 4, 18, 19, 20, 21, 31, 38, 82, 94, 212 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(12) > 10000, if it exists.
LINKS
EXAMPLE
2 is in the sequence because prime(2)^2 - 2 = 3^2 - 2 = 7.
MAPLE
N:=10000:
for X from 1 to N do
if isprime(ithprime(X)^X - 2) then print(X);
end if:
end do:
MATHEMATICA
Select[Range[220], PrimeQ[Prime[#]^#-2]&] (* Harvey P. Dale, Apr 03 2019 *)
PROG
(PARI) select( is(n)=ispseudoprime(prime(n)^n-2), [1..222]) \\ M. F. Hasler, May 21 2018
CROSSREFS
Cf. A303371.
Sequence in context: A242528 A137933 A143116 * A115987 A076692 A350629
KEYWORD
nonn,more
AUTHOR
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 23:40 EDT 2024. Contains 371798 sequences. (Running on oeis4.)