Prime class completed with basic functions.

Extension possible with the AKS primalty test.