Refactoring of Prime Functions

Moved prime checking brute force function from Problem 7 and 10 to Prime
Class.