Skip to content

Commit 28c7b8f

Browse files
committed
Rectified mistake in powers docs
1 parent 7eb4b66 commit 28c7b8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/powers.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ This function is a wrapper around [Hecke.jl's really excellent and efficient `is
1414
!!! note
1515
1616
It should be noted that there is another defintion for "perfect powers":
17-
> some number of the form ``p^b``, where ``p, b \in \mathbb{N}``, ``b > 1``, *and ``p`` is a prime number``.
17+
> some number of the form ``p^b``, where ``p, b \in \mathbb{N}``, *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.
1919
2020
See also: `CodingTheory.isperfectpower`.
2121
"""
2222
function isperfectpower(n::Integer)
2323
(n == 0) && return false
24-
e = first(Hecke.ispower(n))
24+
e = first(ispower(n))
2525
return (e != 1 && e != 0)
2626
end
2727

@@ -32,7 +32,7 @@ isprimepower(n::Integer) -> Bool
3232
3333
Given an integer `n`, returns `true` or `false` depending on whether or not it is a prime power.
3434
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``.
35+
A prime power is some number of the form ``p^b``, where ``p, b \in \mathbb{N}``, and ``p`` is a prime number``.
3636
3737
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).
3838

0 commit comments

Comments
 (0)