run and tested quadprim0mod4.c