29.py 91 B

12
  1. #!/usr/bin/env python
  2. print len(set(a ** b for b in range(2, 101) for a in range(2, 101)))