Merge: fix Int::is_prime
authorJean Privat <jean@pryen.org>
Thu, 3 Mar 2016 07:35:26 +0000 (02:35 -0500)
committerJean Privat <jean@pryen.org>
Thu, 3 Mar 2016 07:35:26 +0000 (02:35 -0500)
commit5e791a94e7fc108673ecc50317b5437d288c4023
tree2b4350f10c53b9f49498621d7c6e7a050d411218
parenta53005020d41cde2e6dc6c2ea8bbe743d27d2724
parentb9ad4b88842ffd10655775eb919c6522d4403846
Merge: fix Int::is_prime

Primality test should also test the sqrt of the number.

Pull-Request: #1970
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>