Compare the loop time between Fortran and python. Results python: 4.17 seconds fortran: 0.17 seconds 4.17/0.17 is about 24.5 We also tried Mathematcia the result is about 12~13 seconds