-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added the Number
k.powerfree_count(a,b)
method.
It efficiently counts the number of k-powerfree numbers <= n, or in the range `a..b`; say 3.powerfree_count(100) #=> count of cubefree numbers <= 100 say 3.powerfree_count(50, 100) #=> count of cubefree numbers in the range 50..100
- Loading branch information
Showing
2 changed files
with
79 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters