Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.CountPrime.Monotone

Uniform native counter budgets over modulus intervals #

The public scalar, address, workspace and native instruction budgets are monotone in the runtime modulus. Prime selection can therefore call the actual counter for different primes using one numerical admission, frame envelope and instruction budget.

Increasing the modulus increases the signed magnitude budget.

One address envelope suffices for every modulus below its supplied maximum.

All counter workspaces end before the workspace for the largest admitted modulus.

The complete native pre-halt counter cost is monotone in its runtime modulus.