fork download
  1. import math
  2.  
  3. is_magic = []
  4. for n in range(8, 27):
  5. valor = pow(n, 0.5)
  6. if valor == 2 or valor == 3 or valor == 5 or valor == 7:
  7. is_magic.append(n)
  8. print(is_magic)
  9.  
  10. #https://pt.stackoverflow.com/q/466768/101
Success #stdin #stdout 0.02s 9452KB
stdin
Standard input is empty
stdout
[9, 25]