Changeset 82280d in git for Singular


Ignore:
Timestamp:
Nov 12, 2009, 10:54:43 AM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
Children:
27bb97f5f06fab3d914b8889b6cabffbc4df28b6
Parents:
590f9892b373e02f15eb1e8ab30127dac15b384e
Message:
*hannes: descr. of primL (track 173)

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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/crypto.lib

    r590f989 r82280d  
    2424 Jacobi(a,n)                the generalized Legendre symbol of a and n
    2525 primList(n)                the list of all primes <=n
    26  primL(q)                   all primes p_1,...,p_r such that q<p_1*...*p_r
     26 primL(q)                   first primes p_1,...,p_r such that q<p_1*...*p_r
    2727 intPart(x)                 the integral part of a rational number
    2828 intRoot(m)                 the integral part of the square root of m
     
    306306proc primL(number q)
    307307"USAGE:  primL(q);
    308 RETURN: list of all primes p_1,...,p_r such that q<p_1*...*p_r
     308RETURN: list of the first primes p_1,...,p_r such that q>p_1*...*p_(r-1)
     309        and q<p_1*...*p_r
    309310EXAMPLE:example primL; shows an example
    310311"
     
    318319   while(s<=q)
    319320   {
    320      i++;
     321     i=i+2;
    321322     j=1;
    322323     while(j<=size(re))
Note: See TracChangeset for help on using the changeset viewer.