Package de.tilman_neumann.jml.factor
Class TestsetGenerator
- java.lang.Object
-
- de.tilman_neumann.jml.factor.TestsetGenerator
-
public class TestsetGenerator extends 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).- Author:
- Tilman Neumann
-
-
Constructor Summary
Constructors Constructor Description TestsetGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BigInteger[]
generate(int N_count, int bits, TestNumberNature mode)
Generate N_count random numbers of the given size and nature.static void
main(String[] args)
A simple main function to generate hard semi-primes.
-
-
-
Method Detail
-
generate
public static BigInteger[] generate(int N_count, int bits, TestNumberNature mode)
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(String[] args)
A simple main function to generate hard semi-primes.- Parameters:
args
- ignored
-
-