Intel Corporation interview question

Decimal to N-Base (python), Prime numbers, Cut the hive problem