a little improvement for BruteForceFactorization.hs