quickcheck tryout
code story 2013 first exercise.
fix the couple problem
Improve the performance by limiting the bound to sqrt n.
Checking the optimization works comparing with the first implementation