Intel Corporation Interview Question

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