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!)
A318959 Primes p (> 2) such that p - 2 and p - 1 are nonsquarefree. 3
29, 101, 127, 137, 149, 173, 277, 281, 317, 353, 389, 461, 509, 541, 569, 577, 641, 677, 727, 821, 857, 877, 929, 977, 1109, 1129, 1181, 1217, 1277, 1289, 1361, 1423, 1433, 1451, 1613, 1667, 1721, 1777, 1861, 1877, 1901, 1913, 1973, 2081, 2153, 2297, 2333, 2351 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
21 (= 23 - 2) is squarefree. So 23 is not a term.
27 = 3^3 and 28 = 2^2*7. So 29 is a term.
MATHEMATICA
Select[Prime[Range[500]], !SquareFreeQ[# - 2] && !SquareFreeQ[# - 1] &] (* Vincenzo Librandi, Sep 06 2018 *)
PROG
(PARI) forprime(p=2, 1e4, if(!issquarefree(p-1)&&!issquarefree(p-2), print1(p, ", "))); \\ Altug Alkan, Sep 06 2018
(Magma) [p: p in PrimesInInterval(3, 2500)| not IsSquarefree(p-2) and not IsSquarefree(p-1)]; // Vincenzo Librandi, Sep 06 2018
CROSSREFS
Sequence in context: A087641 A161665 A127464 * A142109 A069472 A142138
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Sep 06 2018
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 August 10 21:39 EDT 2024. Contains 375058 sequences. (Running on oeis4.)