Created
June 11, 2020 15:23
-
-
Save alexandregama/f1cb86ead5e95b4de09ac74d434f04f7 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
array.select{ |item| is_prime(item) }.reduce(:+) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment