The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A089202 Primes p such that p-2 and p+2 are divisible by a cube. 1
4457, 10987, 15377, 20873, 32587, 39877, 51109, 53377, 54623, 60127, 66877, 74873, 101873, 107377, 112997, 115589, 120877, 121123, 125197, 126443, 128873, 135623, 143719, 148957, 155377, 161053, 161377, 162623, 168127, 169373, 174877, 176123 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
For any distinct odd primes p,q, includes all primes == 2 (mod p^3) and == -2 (mod q^3), and thus is infinite by Dirichlet's theorem on primes in arithmetic progressions. Robert Israel, Jan 11 2019
LINKS
EXAMPLE
4457-2 = 3^4*5*11,4457+2 = 7^3*13
MAPLE
filter:= proc(p)
isprime(p) and ormap(t -> t[2]>=3, ifactors(p+2)[2]) and ormap(t -> t[2]>=3, ifactors(p-2)[2])
end proc:
select(filter, [seq(i, i=3..2*10^5, 2)]); # Robert Israel, Jan 11 2019
MATHEMATICA
filterQ[p_] := PrimeQ[p] && AnyTrue[FactorInteger[p-2], #[[2]] >= 3&] && AnyTrue[FactorInteger[p+2], #[[2]] >= 3&];
Select[Prime[Range[20000]], filterQ] (* Jean-François Alcover, Aug 26 2020 *)
PROG
(PARI) powerfreep4(n, p, k) = { c=0; pc=0; forprime(x=2, n, pc++; if(!ispowerfree(x-k, p) && !ispowerfree(x+k, p), c++; print1(x", "); ) ); print(); print(c", "pc", "c/pc+.0) } ispowerfree(m, p1) = { flag=1; y=component(factor(m), 2); for(i=1, length(y), if(y[i] >= p1, flag=0; break); ); return(flag) }
CROSSREFS
Sequence in context: A253704 A235015 A185767 * A250977 A289513 A345590
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Dec 08 2003
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 June 7 22:01 EDT 2024. Contains 373206 sequences. (Running on oeis4.)