Calculating 9999999999 (99999 power 99999) on Python and Ruby
Testing Environment
- Windows 2000, RAM 512, CPU 1.6 Celeron Mobile
- Python 2.6.1 and ruby 1.9.1
Python
(99999**99999)/(99999**99999)
6 seconds
Ruby
(99999**99999)/(99999**99999)
45 seconds
Python is fast on that thing.
ps# Both Python & Ruby fail to output on screen so I test like this (99999**99999)/(99999**99999) instead of 99999**99999
Halloween - 2024
3 weeks ago
No comments:
Post a Comment