Milliman Interview Question

Given a number, how would you check if it was prime with code?