Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Tau-function/Perl/tau-function.pl
Normal file
10
Task/Tau-function/Perl/tau-function.pl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use feature 'say';
|
||||
use ntheory 'divisors';
|
||||
|
||||
my @x;
|
||||
push @x, scalar divisors($_) for 1..100;
|
||||
|
||||
say "Tau function - first 100:\n" .
|
||||
((sprintf "@{['%4d' x 100]}", @x[0..100-1]) =~ s/(.{80})/$1\n/gr);
|
||||
Loading…
Add table
Add a link
Reference in a new issue