# Ruby kickstart session2

I tried to finish session2 challenges, but couldn’t finish 11 & 13. Hopefully, I can see some progress tomorrow.

Today, I learned the importance of where to put return statement(?). I should keep that in mind while coding.

def prime?(number) i = 2 until i == number if number % i == 0 return false end i += 1 end return true

end

def got_three?(array) i = 0 while i < array.length if array[i] == array[i+1] && array[i+1] == array[i+2] return true end i += 1 end false

end

Study hours: 4:00