1 USING: help.markup help.syntax ;
4 { next-prime prime? } related-words
7 { $values { "n" "an integer not smaller than 2" } { "p" "a prime number" } }
8 { $description "Return the next prime number greater than " { $snippet "n" } "." } ;
11 { $values { "n" "an integer" } { "?" "a boolean" } }
12 { $description "Test if an integer is a prime number." } ;
14 { primes-upto primes-between } related-words
17 { $values { "n" "an integer" } { "seq" "a sequence" } }
18 { $description "Return a sequence containing all the prime numbers smaller or equal to " { $snippet "n" } "." } ;
21 { $values { "low" "an integer" } { "high" "an integer" } { "seq" "a sequence" } }
22 { $description "Return a sequence containing all the prime numbers between " { $snippet "low" } " and " { $snippet "high" } "." } ;