Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
12
Task/Tau-number/PascalABC.NET/tau-number.pas
Normal file
12
Task/Tau-number/PascalABC.NET/tau-number.pas
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
##
|
||||
function DivisorsCount(n: integer) := Range(1,n).Count(i -> n.Divs(i));
|
||||
|
||||
var lst := new List<integer>;
|
||||
var n := 1;
|
||||
while lst.Count < 100 do
|
||||
begin
|
||||
if n.Divs(DivisorsCount(n)) then
|
||||
lst.Add(n);
|
||||
n += 1;
|
||||
end;
|
||||
lst.Println;
|
||||
Loading…
Add table
Add a link
Reference in a new issue