Math problem, primality test, approximate enumeration and integer factorization.