Tuesday, June 9, 2015

Haskell 99 Problem 35

Problem

Please find the problem here.

Solution:

Please see the solution as follow:

Brute force factoring - just try each number in the range just like the brute force prime detection. Care is taken to make sure we don't try the same factor again once we know it does not divide.

No comments :

Post a Comment