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 integeinteger.
func pisanoPrime(p uint, k uint) uint {
if !isPrime(p) || k == 0 {
9,490

edits