Dinesh Goyal's submission of Prime Graph | CodeChef