Dfs Algorithm Python Program For Prime Number