Tomaz Hocevar's submission of Prime Pattern | CodeChef