MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / isDivisible

Function isDivisible

project_euler/problem_5/problem5.go:25–33  ·  view source on GitHub ↗
(n, limit uint)

Source from the content-addressed store, hash-verified

23}
24
25func isDivisible(n, limit uint) bool {
26 for i := uint(1); i <= limit; i++ {
27 if n%i != 0 {
28 return false
29 }
30 }
31
32 return true
33}

Callers 1

Problem5Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected