A216467 Smallest numbers in the coordinates of the isolated visible lattice points in the infinite square grid.
21, 35, 39, 45, 51, 55, 57, 69, 75, 77, 85, 87, 91, 93, 95, 99, 105, 111, 115, 117, 119, 123, 133, 135, 141, 143, 145, 147, 153, 155, 159, 161, 165, 171, 175, 177, 183, 185, 187, 189, 195, 201, 203, 205, 207, 209, 213, 215, 217, 219, 221, 225, 231, 235, 237, 244, 245
Offset: 1
Keywords
Programs
-
Mathematica
Select[Range[300], If[OddQ[#], !PrimePowerQ[#] && !PrimePowerQ[# - 1] && !PrimePowerQ[# + 1], PrimeOmega[# - 1] > 2 && PrimeOmega[# + 1] > 2]&] (* Jean-François Alcover, Sep 02 2019, after Andrew Howroyd *)
-
PARI
select(k->if(k%2, !isprimepower(k) && !isprimepower(k-1) && !isprimepower(k+1), omega(k-1)>2 && omega(k+1)>2), [1..300]) \\ Andrew Howroyd, Jun 27 2018
Extensions
Several missing terms added by Charlie Neder, Jun 27 2018
More terms from Jean-François Alcover, Sep 02 2019
Comments