RosettaCodeData/Task/Tau-number/BASIC256/tau-number.basic

19 lines
272 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
print "The first 100 tau numbers are:"
n = 0
num = 0
limit = 100
while num < limit
n += 1
tau = 0
for m = 1 to n
if n mod m = 0 then tau += 1
next m
if n mod tau = 0 then
num += 1
if num mod 10 = 1 then print
2023-12-16 21:33:55 -08:00
print rjust(string(n), 6);
2023-07-01 11:58:00 -04:00
end if
end while
end