]> gitweb.factorcode.org Git - factor.git/blob - basis/math/primes/erato/erato-docs.factor
Merge branch 'master' into experimental
[factor.git] / basis / math / primes / erato / erato-docs.factor
1 USING: help.markup help.syntax ;
2 IN: math.primes.erato
3
4 HELP: sieve
5 { $values { "n" "the greatest odd number to consider" } { "arr" "a bit array" } }
6 { $description "Return a bit array containing a primality bit for every odd number between 3 and " { $snippet "n" } " (inclusive). " { $snippet ">index" } " can be used to retrieve the index of an odd number to be tested." } ;
7
8 HELP: >index
9 { $values { "n" "an odd number" } { "i" "the corresponding index" } }
10 { $description "Retrieve the index corresponding to the odd number on the stack." } ;
11
12 { sieve >index } related-words