implemented prime, not tested