add prime algorithm file
small refactoring, but no speed up
Problem 3 solved