Number.prime: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/spec/math/number.bend as Number Lines 73-81 of bend-collections-laws-math@1.0.0.0/spec/math/number.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/spec/math/number.bend&start_line=73&end_line=81 import Base # n is prime: 2 <= n and no d in [2, n) divides n def prime(+n: Nat) -> Bool: match n: case 0n: False{} case 1n: False{} case 2n+ +p: nodiv(p, 2n+p, 2n) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/spec/math/number.bend&name=nodiv