The anti-primes
(or highly composite numbers, sequence A002182 in the OEIS)
are the natural numbers with more factors than any smaller than itself.



Task

Generate and show here, the first twenty anti-primes.



Related tasks

   Factors of an integer
   Sieve of Eratosthenes


100 LET A=0
101 LET N=1
102 LET H=0
103 PRINT "The first 20 anti-primes are:"
105 GOSUB 150
106 LET H=F
107 LET A=A+1
108 PRINT N
109 LET N=N+1
110 IF A<20 THEN GOTO 105
111 END
150 GOSUB 200
151 IF F>H THEN RETURN
152 LET N=N+1
153 GOTO 150
200 LET F=0
201 LET C=1
205 IF N/C*C=N THEN LET F=F+1
206 LET C=C+1
207 IF C<=N THEN GOTO 205
208 RETURN
 