Package de.tilman_neumann.jml.factor
Class TestsetGenerator
java.lang.Object
de.tilman_neumann.jml.factor.TestsetGenerator
public class TestsetGenerator
extends java.lang.Object
Generation of random N that are not too easy to factor.
The standard case are semiprimes N where the smaller factor of N is >= cbrt(N).
-
Constructor Summary
Constructors Constructor Description TestsetGenerator()
-
Method Summary
Modifier and Type Method Description static java.math.BigInteger[]
generate(int N_count, int bits, TestNumberNature mode)
Generate N_count random numbers of the given size and nature.static void
main(java.lang.String[] args)
A simple main function to generate hard semi-primes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TestsetGenerator
public TestsetGenerator()
-
-
Method Details
-
generate
Generate N_count random numbers of the given size and nature.- Parameters:
N_count
- number of test numbers to generatebits
- size of test numbers to generatemode
- the nature of test numbers to generate- Returns:
- test set
-
main
public static void main(java.lang.String[] args)A simple main function to generate hard semi-primes.- Parameters:
args
- ignored
-