-
-
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
squarefree(from, to)
and `each_squarefree(from, …
…to, {...})` methods. Example: # Squarefree numbers in the interval [100, 200] say squarefree(100, 200) # Squarefree numbers <= 100 say squarefree(100) # Iteration over the squarefree numbers in the interval [100, 200] each_squarefree(100, 200, {|n| say n }) # Iteration over the squarefree numbers <= 100 100.each_squarefree {|n| say n }
- Loading branch information
Showing
2 changed files
with
175 additions
and
43 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