Add common.prime for prime related functions.