Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#1. sum of even numbers
# count_even(a)
# [1,2,3] => 2
# [1,2,4] => 6
# 2. Return names with 'H' at first letter
# ['Haa', 'aa', 'kkk] => ['Haa']
# 3. check if a number is prime
# prime(5) => true
# prime(4) => false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.