Fixes prime? function for the first task. Also fixes digits. Not only now it works fine but its much more short and simple.
Shortens the digits function even more.