Pisano period: Difference between revisions
m
→{{header|Go}}: Corrected typo in comment.
m (→{{header|Go}}: Corrected typo in comment.) |
|||
Line 205:
}
// Calculates the Pisano period of p^k where 'p' is prime and 'k' is a positive
func pisanoPrime(p uint, k uint) uint {
if !isPrime(p) || k == 0 {
|