1st Version

First completed code.
2nd Version

Fixed errors stopping correct calculation of prime.