Algoworks interview question

Programming question Prime no and Armstrong no.