Changeset 4a210b3 in git
- Timestamp:
- Dec 22, 2006, 1:06:28 PM (17 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 6881a3917411ce8ae2352b62f115cbf182a7d528
- Parents:
- d1075e8def9e2f28ec26749e3f7a5fead8834f4d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/krypto.lib
rd1075e r4a210b3 1 1 //GP, last modified 28.6.06 2 2 /////////////////////////////////////////////////////////////////////////////// 3 version="$Id: krypto.lib,v 1. 4 2006-12-14 10:49:05pfister Exp $";3 version="$Id: krypto.lib,v 1.5 2006-12-22 12:06:28 pfister Exp $"; 4 4 category="Teaching"; 5 5 info=" … … 930 930 proc pFactor(number n,int B, list P) 931 931 "USAGE: pFactor(n,B.P); n to be factorized, B a bound , P a list of primes 932 RETURN: a list of factors of n or the message:no factor found932 RETURN: a list of factors of n or n if no factor found 933 933 NOTE: Pollard's p-factorization 934 934 creates the product k of powers of primes (bounded by B) from … … 955 955 number d=gcdN(powerN(a,k,n)-1,n); 956 956 if((d>1)&&(d<n)){return(d);} 957 return( "no factor found");957 return(n); 958 958 } 959 959 example
Note: See TracChangeset
for help on using the changeset viewer.