prime

Utility functions and methods to generate random BigInt, generate random prime BigInt and check if BigInt is prime.

Usage

Generate random prime

print(randomPrimeBigInt(1024));

Check if number is prime

print(randomPrimeBigInt(1024).isPrime);

Libraries

ninja_prime