login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Primes p such that lcm(1,2,3,...,p-2,p-1,p) -+ 1 are both primes.
2

%I #8 Mar 04 2018 17:45:39

%S 3,5,7,19,47

%N Primes p such that lcm(1,2,3,...,p-2,p-1,p) -+ 1 are both primes.

%C Intersection of A154524 and A154525.

%o (PARI) isok(p) = {if (! isprime(p), return (0)); lcmv = lcm(vector(p, i, i)); isprime(lcmv + 1) && isprime(lcmv - 1);} \\ _Michel Marcus_, Oct 26 2013

%Y Cf. A056604, A154524, A154525.

%K more,nonn

%O 1,1

%A _Lekraj Beedassy_, Jan 11 2009