<reponame>fenglyu/projecteuler<gh_stars>0
#!/usr/bin/python3


fil = {}
for i in range(2, 101):
    for  j in range(2, 101):
        s = i**j
        if fil.get(s):
            fil[s]['c'] +=1 
            print(fil[s]['p'], "=>", i, j, s, fil[s]['c'])
        else:
            fil[s] = {}
            fil[s]['c'] = 1 
            fil[s]['p'] = (i,j)
            print(fil[s]['p'], "=>", i, j, s, fil[s]['c'])

#!/usr/bin/python3


fil = {}
for i in range(2, 101):
    for  j in range(2, 101):
        s = i**j
        if fil.get(s):
            fil[s]['c'] +=1 
            print(fil[s]['p'], "=>", i, j, s, fil[s]['c'])
        else:
            fil[s] = {}
            fil[s]['c'] = 1 
            fil[s]['p'] = (i,j)
            print(fil[s]['p'], "=>", i, j, s, fil[s]['c'])
#!/usr/bin/python3