Fix prime? method
Add false return if the number is lower than 2
Change the range to upto
Use pred in upto
Fix prime_factors
Remove the unnecesary self