OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
EXAMPLE
125 is in the sequence because it has one unique prime factor (5), which is fewer than its neighbors 124 (two such factors, namely 2 and 31) and 126 (two such factors, namely 2 and 53).
MATHEMATICA
For[i=2, i<1000, If[And[Length[FactorInteger[i 1]]>Length[FactorInteger[i]], Length[FactorInteger[i+1]] > Length[FactorInteger[i]]], Print[i]]; i++ ]
(* Second program: *)
Select[Range[1000], PrimeNu[#] < Min[PrimeNu[#-1], PrimeNu[#+1]]&] (* Jean-François Alcover, Nov 14 2016 *)
Flatten[Position[Partition[PrimeNu[Range[250]], 3, 1], _?(#[[1]]>#[[2]]<#[[3]]&), 1, Heads->False]]+1 (* Harvey P. Dale, Apr 18 2021 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Neil Fernandez, Dec 21 2004
STATUS
approved