To load: | (require (planet djhaskin987/miller-rabin:1:4/is-prime)) |
Old style: | (require (planet "is-prime.rkt" ("djhaskin987" "miller-rabin.plt" 1 4))) |
Package description: | Provides the function "prime?" which takes a number N and the number of times to test it K and returns whether the number N is (probably) prime. The probability of its truth is (1 - 1 / (4^K)). |
Downloads this week: | 1 |
Total downloads: | 30 |
Tickets: | 2 |
Open tickets: | 1 |
Primary files: | [no interface available] |
Current version |
PLaneT version | External version | Source | DLs | Docs | Req. PLT | Date added |
(1 4) | 0.1.3 | [browse] | 13 | [docs] | [none] | 2012-11-23 |
To load: (require (planet djhaskin987/miller-rabin:1:4/is-prime)) | ||||||
Available in repositories: 4.x, 3xx | ||||||
Initial release. 6/28/2012: Added rng parameter so the RNG used could be customized. 11/23/2012: Added some documentation to reflect the RNG change. |
Open tickets |
Ticket Id | Owner | Reporter | Type | Version |
---|---|---|---|---|
1535 | djhaskin987 | anonymous | enhancement | (1 4) |
`prime?' function does not check if x < 2. |
Old versions |
PLaneT version | External version | Source | DLs | Docs | Req. PLT | Date added |
(1 3) | 0.1 | [browse] | 17 | [none] | [none] | 2011-12-28 |
To load: (require (planet "is-prime.rkt" ("djhaskin987" "miller-rabin.plt" 1 (= 3)))) | ||||||
Available in repositories: 4.x, 3xx | ||||||
[no release notes] | ||||||
(1 2) | 0.1 | [browse] | 0 | [none] | 5.1 | 2011-12-28 |
To load: (require (planet "is-prime.rkt" ("djhaskin987" "miller-rabin.plt" 1 (= 2)))) | ||||||
Available in repositories: 4.x, 3xx | ||||||
Initial release. | ||||||
(1 1) | 0.1 | [browse] | 0 | [none] | [none] | 2011-12-27 |
To load: (require (planet "is-prime.rkt" ("djhaskin987" "miller-rabin.plt" 1 (= 1)))) | ||||||
Available in repositories: 3xx, 4.x | ||||||
initial release. | ||||||
(1 0) | — | [browse] | 0 | [none] | [none] | 2011-12-27 |
To load: (require (planet "is-prime.rkt" ("djhaskin987" "miller-rabin.plt" 1 (= 0)))) | ||||||
Available in repositories: 4.x, 3xx | ||||||