Changeset 4a210b3 in git


Ignore:
Timestamp:
Dec 22, 2006, 1:06:28 PM (17 years ago)
Author:
Gerhard Pfister <pfister@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6881a3917411ce8ae2352b62f115cbf182a7d528
Parents:
d1075e8def9e2f28ec26749e3f7a5fead8834f4d
Message:
output von pFactor geaendert


git-svn-id: file:///usr/local/Singular/svn/trunk@9615 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/krypto.lib

    rd1075e r4a210b3  
    11//GP, last modified 28.6.06
    22///////////////////////////////////////////////////////////////////////////////
    3 version="$Id: krypto.lib,v 1.4 2006-12-14 10:49:05 pfister Exp $";
     3version="$Id: krypto.lib,v 1.5 2006-12-22 12:06:28 pfister Exp $";
    44category="Teaching";
    55info="
     
    930930proc pFactor(number n,int B, list P)
    931931"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 found
     932RETURN: a list of factors of n or n if no factor found
    933933NOTE: Pollard's p-factorization
    934934       creates the product k of powers of primes (bounded by B)  from
     
    955955   number d=gcdN(powerN(a,k,n)-1,n);
    956956   if((d>1)&&(d<n)){return(d);}
    957    return("no factor found");
     957   return(n);
    958958}
    959959example
Note: See TracChangeset for help on using the changeset viewer.