OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Pierpont Prime
FORMULA
MATHEMATICA
smooth3Q[n_] := n == 2^IntegerExponent[n, 2]*3^IntegerExponent[n, 3];
Select[Prime[Range[100]], !smooth3Q[#-1]&] (* Jean-François Alcover, Oct 17 2021 *)
PROG
(PARI) is(n)=my(q=n-1); q>>=valuation(q, 2); q/=3^valuation(q, 3); q>1 && isprime(n) \\ Charles R Greathouse IV, Oct 29 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Aug 29 2006
STATUS
approved