Created
June 10, 2020 15:24
-
-
Save alexandregama/fc9496eb41ee8cfd2846f5c612338fb8 to your computer and use it in GitHub Desktop.
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
def is_prime_number(item, number) | |
return false if item == 1 | |
return is_prime_number(item, number - 1) if item % number != 0 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment