Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Tau-number/M2000-Interpreter/tau-number.m2000
Normal file
16
Task/Tau-number/M2000-Interpreter/tau-number.m2000
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
module tau_numbers {
|
||||
print "The first 100 tau numbers are:"
|
||||
long n, num, limit=100, tau, m
|
||||
while num < limit
|
||||
n++:
|
||||
tau=0
|
||||
for m=1 to n{if n mod m=0 then tau++}
|
||||
if n mod tau= 0 else continue
|
||||
num++:if num mod 10 = 1 then print
|
||||
print format$("{0::-5}",n);
|
||||
end while
|
||||
print
|
||||
}
|
||||
profiler
|
||||
tau_numbers
|
||||
print timecount
|
||||
Loading…
Add table
Add a link
Reference in a new issue