primefinder code
pseudocode for RNG inputs