AlongX Software interview question

prime number code and basic programing