Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 286 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 286 Bytes

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);