This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A166684 #28 Aug 09 2024 15:15:24 %S A166684 1,2,3,4,5,7,9,11,13,17,19,23,25,29,31,37,41,43,47,49,53,59,61,67,71, %T A166684 73,79,83,89,97,101,103,107,109,113,121,127,131,137,139,149,151,157, %U A166684 163,167,169,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251 %N A166684 Numbers n such that d(n)<4. %C A166684 1 together with primes and squares of primes. %C A166684 Numbers n such that A229964(n) = 0. - _Eric M. Schmidt_, Oct 05 2013 %C A166684 Numbers that cannot be written as a product of 2 distinct nonunits. - _Peter Munn_, May 26 2023 %H A166684 G. C. Greubel, <a href="/A166684/b166684.txt">Table of n, a(n) for n = 1..10000</a> %F A166684 a(n) = A000430(n-1), n>1. - _R. J. Mathar_, May 21 2010 %t A166684 Select[Range[300],DivisorSigma[0,#]<4&] (* or *) Select[With[ {prs = Prime[Range[200]]},Union[Join[{1},prs,prs^2]]],#<301&] (* _Harvey P. Dale_, Jan 04 2012 *) %o A166684 (PARI) is(n)=isprime(n) || (issquare(n,&n) && isprime(n)) || n==1 \\ _Charles R Greathouse IV_, Dec 23 2022 %o A166684 (Python) %o A166684 from math import isqrt %o A166684 from sympy import primepi %o A166684 def A166684(n): %o A166684 def f(x): return n-1+x-primepi(x)-primepi(isqrt(x)) %o A166684 m, k = n, f(n) %o A166684 while m != k: %o A166684 m, k = k, f(k) %o A166684 return int(m) # _Chai Wah Wu_, Aug 09 2024 %Y A166684 A000430 is the main entry for this sequence. %Y A166684 Cf. A000005, A229964. %K A166684 nonn,easy %O A166684 1,2 %A A166684 _Juri-Stepan Gerasimov_, Oct 18 2009 %E A166684 Corrected (193 inserted) by _R. J. Mathar_, May 21 2010