Skip to content

Commit d3b6336

Browse files
committed
Updated powers docs
1 parent 53b7cc4 commit d3b6336

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/powers.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ This function is a wrapper around [Hecke.jl's really excellent and efficient `is
1616
It should be noted that there is another defintion for "perfect powers":
1717
> some number of the form ``p^b``, where ``p, b \in \mathbb{N}``, ``b > 1``, *and ``p`` is a prime number``.
1818
Here, we call numbers of this form *prime powers*, or *proper perfect powers*. By this definition, 36 is *not* a perfect power, because 6 is not prime.
19+
20+
See also: `CodingTheory.isperfectpower`.
1921
"""
2022
function isperfectpower(n::Integer)
2123
(n == 0) && return false
@@ -28,8 +30,13 @@ end
2830
isprimepower(n::Integer) -> Bool
2931
```
3032
33+
Given an integer `n`, returns `true` or `false` depending on whether or not it is a prime power.
34+
35+
A prime power is some number of the form ``p^b``, where ``p, b \in \mathbb{N}``, ``b > 1``, *and ``p`` is a prime number``.
36+
3137
This function is a wrapper around [Hecke.jl's really excellent and effcient `ispower` function](https://github.com/thofma/Hecke.jl/blob/master/src/Misc/Integer.jl#L756-L769).
3238
39+
See also: `CodingTheory.isperfectpower`.
3340
"""
3441
function isprimepower(n::Integer)
3542
return isprime_power(n)

0 commit comments

Comments
 (0)