move prime.Check func into prime package