Document the primes module.
This commit is contained in:
parent
4196e95118
commit
1660789c43
2 changed files with 14 additions and 1 deletions
13
README.md
13
README.md
|
@ -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
|
||||
-----------------------
|
||||
|
||||
|
|
|
@ -28,9 +28,9 @@
|
|||
(module
|
||||
primes
|
||||
(
|
||||
primes-tests!
|
||||
is-4digit-prime?
|
||||
gen-all-4digit-primes
|
||||
primes-tests!
|
||||
)
|
||||
|
||||
(import scheme
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue