[Ecm-commits] r2397 - trunk

cvs commits ecm-commits at lists.gforge.inria.fr
Tue Feb 12 18:33:47 CET 2013


Author: morain
Date: 2013-02-12 18:33:47 +0100 (Tue, 12 Feb 2013)
New Revision: 2397

Log:
Slightly modifying output.


Modified:
   trunk/manyecm.c
Modified: trunk/manyecm.c
===================================================================
--- trunk/manyecm.c	2013-02-12 16:22:48 UTC (rev 2396)
+++ trunk/manyecm.c	2013-02-12 17:33:47 UTC (rev 2397)
@@ -914,7 +914,7 @@
 	q = tabq[iq];
 	qs = (q % 4 == 1 ? q : -q);
 	if(n % q == 0){
-	    printf("# I can find sqrt(%d)\n", qs);
+	    /*	    printf("# I can find sqrt(%d)\n", qs);*/
 	    /* make sure that b^nn = 1 */
 	    nn = (sgn == -1 ? n : 2*n);
 	    ret = odd_square_root_mod_N(f, &status, sqroots+isq, b, nn, q, N);
@@ -1021,7 +1021,7 @@
     tsq[0] = 0;
     ret = prepare_squareroots(tf[0], tsq, sqroots, b, n, sgn, N);
     if(ret != ECM_NO_FACTOR_FOUND)
-	return ret;
+	return conclude_on_factor(N, tf[0], 1);
     mpz_init_set_ui(sq2[0], 1);
     for(i = 0; tabd[i][0] != 0; i++){
 	disc = tabd[i][0];




More information about the Ecm-commits mailing list