Ad
Code
Diff
  • import math
    
    def hundred():
        pi = math.pi
        e = math.e
        val = pi**(pi + e/pi + pi**-pi) - pi/e - e**-e - e**-e - pi**-pi + pi**-(pi+pi/e) + pi**-(pi+e) - pi**-(pi+pi+e/pi)
        # 100.00000349005191
        val = val * (11 + 13 + 17 + 19 + 23 + 29 + 31) / 143 #prime numbers
        return round(val)
    • import math
    • def hundred():
    • pi = math.pi
    • e = math.e
    • val = pi**(pi + e/pi + pi**-pi) - pi/e - e**-e - e**-e - pi**-pi + pi**-(pi+pi/e) + pi**-(pi+e) - pi**-(pi+pi+e/pi)
    • # 100.00000349005191
    • val = val * (11 + 13 + 17 + 19 + 23 + 29 + 31) / 143 #prime numbers
    • return round(val)