def u32_next_prime
import bend-collections-laws-math@1.0.0.0/src/math/fixed.bend as Fixedimport Base
import bend-collections-laws-math@1.0.0.0/src/math/number.bend as NB
235def u32_next_prime(+n: U32) -> Maybe<&2, U32>:
236 u32_np(Nat.add(U32.to_nat(U32.not(n)), 1n), U32.add(n, 1), U32.is_zero(U32.add(n, 1)), NB.is_prime(U32.to_nat(U32.add(n, 1))))
Uses (9)
Used by (8)
- bend-collections-laws-math@1.0.0.0/spec/math/fixed:NextPrime.found
- bend-collections-laws-math@1.0.0.0/spec/math/fixed:NextPrime.none
- bend-collections-laws-math@1.0.0.0/proofs/math/number/fixprime:found
- bend-collections-laws-math@1.0.0.0/proofs/math/number/fixprime:found_one
- bend-collections-laws-math@1.0.0.0/proofs/math/number/fixprime:none
- …