mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   GMP-ECM (https://www.mersenneforum.org/forumdisplay.php?f=55)
-   -   Question on unfactored numbers... (https://www.mersenneforum.org/showthread.php?t=5628)

WraithX 2006-03-19 21:53

Question on unfactored numbers...
 
Hello everyone,

I was wondering, how do I tell if a number being tested is left unfactored once gmp-ecm is done with it? I've already modified the source to add an "output unfactored numbers" option but so far the if statement looks like:
if ((cnt == 0) && (output_unfactored_n == 1))
This way it will only run once, at the end of testing that particular number, but right now it is outputting unfactoreds alongside the factoreds. Is there a quick test I can put in my if statement to see if the number is unfactored? Thank you for any help you can give.

-David C.

Mystwalker 2006-03-19 22:16

If no factor has been found, there won't be any factors shown afterwards, that's all you need. :wink:
If gmp-ecm finds a factor, it says so...


All times are UTC. The time now is 21:28.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.