Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
4
Task/Totient-function/Sidef/totient-function-3.sidef
Normal file
4
Task/Totient-function/Sidef/totient-function-3.sidef
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[100, 1_000, 10_000, 100_000].each {|limit|
|
||||
var pi = (1..limit -> count_by {|n| 𝜑(n) == (n-1) })
|
||||
say "Number of primes <= #{limit}: #{pi}"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue