yaworsw/euler-manager

View on GitHub
data/problems/99.yml

Summary

Maintainability
Test Coverage
---
:id: 99
:name: Largest exponential
:url: https://projecteuler.net/problem=99
:content: |+
  Comparing two numbers written in index form like 2<sup>11</sup> and 3<sup>7</sup> is not difficult, as any calculator would confirm that 2<sup>11</sup> = 2048 \< 3<sup>7</sup> = 2187.

  However, confirming that 632382<sup>518061</sup> \> 519432<sup>525806</sup> would be much more difficult, as both numbers contain over three million digits.

  Using [base\_exp.txt](project/resources/p099_base_exp.txt) (right click and 'Save Link/Target As...'), a 22K text file containing one thousand lines with a base/exponent pair on each line, determine which line number has the greatest numerical value.

  NOTE: The first two lines in the file represent the numbers in the example given above.