factor/basis/math/primes
Rupert Swarbrick cd28c7a219 math.primes.erato: Fix off-by-one error
The sieve bit vector deals with numbers in chunks of 30. Therefore,
the number 90 (say) is the 91st 'element' of the vector. Each byte
deals with some range {0,1,...,29}+30n so to have the number 90, you
need four bytes.

Rather pleasingly, I bumped into this bug and it reduced to the
incantation:
  2010 2010 sieve marked-prime?
2010-11-02 17:34:24 +01:00
..
erato math.primes.erato: Fix off-by-one error 2010-11-02 17:34:24 +01:00
factors divisors returns empty list for 0 2010-08-09 22:54:35 -07:00
lucas-lehmer docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
miller-rabin Removing integers-as-sequences 2010-01-15 07:15:33 +13:00
safe docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
authors.txt Move math.primes from extra to basis 2009-01-07 21:12:48 +01:00
primes-docs.factor fix more docs typos 2009-10-21 18:11:24 -05:00
primes-tests.factor Fix "primes-between" and "primes-upto" with pathological bounds. 2010-06-11 16:07:52 +02:00
primes.factor Fix "primes-between" and "primes-upto" with pathological bounds. 2010-06-11 16:07:52 +02:00
summary.txt Move math.primes from extra to basis 2009-01-07 21:12:48 +01:00