Add simple is_prime functionality
New ECM code
Compilation cleanup