OFFSET
2,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 2..10000
EXAMPLE
12 = 2^2 *3, and so is divisible by exactly 2 distinct primes. The next larger number divisible by exactly 2 distinct primes is 14, which is 2*7. So a(12) = 14.
MATHEMATICA
a[n_] := For[nu = PrimeNu[n]; k = n+1, True, k++, If[PrimeNu[k] == nu, Return[k]]]; Table[a[n], {n, 2, 100}] (* Jean-François Alcover, Nov 18 2013 *)
PROG
(Haskell)
a165713 n = head [x | x <- [n + 1 ..], a001221 x == a001221 n]
-- Reinhard Zumkeller, Aug 29 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Sep 24 2009
EXTENSIONS
More terms from Sean A. Irvine, Feb 10 2010
STATUS
approved