homework 5c -- random a and b _for each_ prime