Document the primes module.

This commit is contained in:
Dominik Pantůček 2023-03-22 23:00:02 +01:00
parent 4196e95118
commit 1660789c43
2 changed files with 14 additions and 1 deletions

View file

@ -239,6 +239,19 @@ Returns the period from the list of periods ```ps``` the given month
### Primes
A very simple module for generating and checking 4-digit prime numbers.
(is-4digit-prime? n)
* ```n``` - a number
Returns true if the given number ```n``` has four digits and it is a
prime number.
(gen-all-4digit-primes)
Returns a list of all 4-digit prime numbers.
Generic Support Modules
-----------------------

View file

@ -28,9 +28,9 @@
(module
primes
(
primes-tests!
is-4digit-prime?
gen-all-4digit-primes
primes-tests!
)
(import scheme