Theorems on factorization and primality testing | Synapse