Changeset 587f72 in git
 Timestamp:
 Jul 23, 2010, 11:18:37 AM (13 years ago)
 Branches:
 (u'jengelhdatetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
 Children:
 562b0c9545c1092666922dfc0979b71a2c7dd225
 Parents:
 40e810dce492e702bf0e751809ae911eaf670a12
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

Singular/misc_ip.cc
r40e810d r587f72 400 400 mpz_div (n, n, g); /* divide by g, before g is overwritten */ 401 401 402 if (!mpz_probab_prime_p (g, 3))402 if (!mpz_probab_prime_p (g, 10)) 403 403 { 404 404 do … … 424 424 mpz_mod (x1, x1, n); 425 425 mpz_mod (y, y, n); 426 if (mpz_probab_prime_p (n, 3)) 427 { 428 if ((L_ind>0) && (mpz_cmp_si(n,L[L_ind1])==0)) ex[L_ind1]++; 429 else 430 { 431 L[L_ind]=mpz_get_si(n); 432 L_ind++; 426 if (mpz_probab_prime_p (n, 10)) 427 { 428 int te=mpz_get_si(n); 429 if (mpz_cmp_si(n,te)==0) /* does it fit into an int ? */ 430 { 431 if ((L_ind>0) && (mpz_cmp_si(n,L[L_ind1])==0)) ex[L_ind1]++; 432 else 433 { 434 L[L_ind]=mpz_get_si(n); 435 L_ind++; 436 } 437 mpz_set_si(n,1); // add n itself the list of divisors, rest is 1 433 438 } 434 439 break;
Note: See TracChangeset
for help on using the changeset viewer.