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!)
A305076 Numbers k such that prime(k)^k - primorial(k - 1) is prime. 1
2, 4, 5, 8, 9, 15, 29, 213, 666, 1360, 3932 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Numbers k such that A304917(k) is prime.
a(12) > 4000 if it exists.
LINKS
EXAMPLE
n = 1 gives 2 - 1 = 1. n=2 gives 3^2 - 2 = 7, so 2 is the first term.
MAPLE
N:=2000:
for X from 1 to N do
Z:=mul(ithprime(i), i=1..(X-1));
Y:=(ithprime(X)^X - Z);
if isprime(Y) then print(X);
end if
end do:
MATHEMATICA
Select[Range@ 700, PrimeQ[Prime[#]^# - Product[Prime@ i, {i, # - 1}]] &] (* Michael De Vlieger, Jul 19 2018 *)
PROG
(PARI) isok(k) = isprime(prime(k)^k - prod(j=1, k-1, prime(j))); \\ Michel Marcus, Jun 09 2018
CROSSREFS
Sequence in context: A271392 A195364 A279793 * A332223 A269361 A200947
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 23 02:41 EDT 2024. Contains 371906 sequences. (Running on oeis4.)