I'm having trouble with Coderbyte's Prime Time problem. The link is: http://www.coderbyte.com/CodingArea/GuestEditor.php?ct=Prime%20Time&lan=Ruby
def PrimeTime(num)
for i in 1..num
if (num % i) == 0
return false
else
return true
end
end
end
When I run this through repl.it I get no errors, but when I try to pass an integer, I get the following error:
(eval):11: (eval):11: compile error (SyntaxError) (eval):11: syntax error, unexpected tINTEGER, expecting ')' def PrimeTime(10)
Does anyone know why?
THANKS!