Quantiphi Interview Question

Some python codes like Armstrong, prime number