time limit exceeds. https://online.codingblocks.com/player/28486/content/4682/4712
@mddanish hey danish this approach will not work try with sieve of erthothanes algorithm.