Anti-primes: Difference between revisions
→{{header|Odin}}
Space Ghost (talk | contribs) |
Space Ghost (talk | contribs) |
||
Line 2,998:
Anti-Primes
Odin Build: dev-2023-07-nightly:3072479c
<syntaxhighlight lang="
package antiprimes
import "core:fmt"
Line 3,020:
DivisorCount :: proc(v: int) -> int {
total
for (a % 2 == 0) {
}
for p := 3;((p * p) <= a); {
count := 1▼
▲ count = 1
for (a % p == 0) {
}
}
if (a > 1) {
}
return total
|