Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
16
Task/Tau-function/BASIC256/tau-function.basic
Normal file
16
Task/Tau-function/BASIC256/tau-function.basic
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
print "The tau functions for the first 100 positive integers are:"
|
||||
print
|
||||
|
||||
for N = 1 to 100
|
||||
if N < 3 then
|
||||
T = N
|
||||
else
|
||||
T = 2
|
||||
for A = 2 to (N+1)\2
|
||||
if N mod A = 0 then T += 1
|
||||
next A
|
||||
end if
|
||||
print " "; T;
|
||||
if N mod 10 = 0 then print
|
||||
next N
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue