fixed prime alg