Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
25
Task/Tau-number/XBasic/tau-number.basic
Normal file
25
Task/Tau-number/XBasic/tau-number.basic
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
PROGRAM "Tau number"
|
||||
VERSION "0.0000"
|
||||
|
||||
DECLARE FUNCTION Entry ()
|
||||
|
||||
FUNCTION Entry ()
|
||||
PRINT "The first 100 tau numbers are:"
|
||||
|
||||
n = 0
|
||||
num = 0
|
||||
limit = 100
|
||||
DO WHILE num < limit
|
||||
INC n
|
||||
tau = 0
|
||||
FOR m = 1 TO n
|
||||
IF n MOD m = 0 THEN INC tau
|
||||
NEXT m
|
||||
IF n MOD tau = 0 THEN
|
||||
INC num
|
||||
IF num MOD 10 = 1 THEN PRINT
|
||||
PRINT FORMAT$("######", n);
|
||||
END IF
|
||||
LOOP
|
||||
END FUNCTION
|
||||
END PROGRAM
|
||||
Loading…
Add table
Add a link
Reference in a new issue