Miller Rabin algorithm for primality test
Primality test using fast checks and miller-rabin (all in one)
encrypt and decrypt with Miller-Rabin