made plu_modulo_prime() more useful