Fixed buggy is_prime function
Added more solutions