Impel interview question

Prime number algorithm in any language