Skip to main content
Notice removed Reward existing answer by lyxal
Bounty Ended with user's answer chosen by lyxal
Notice added Reward existing answer by lyxal
Bounty Started worth 100 reputation by lyxal
Edited to use standard tetration notation: https://en.wikipedia.org/wiki/Tetration
Source Link

Tetration, represented as a^^b\${}^ba\$, is repeated exponentiation. For example, 2^^3\${}^32\$ is 2^2^2\$2^{2^2}\$, which is 16\$16\$.

Given two numbers a\$a\$ and b\$b\$, print a^^b\${}^ba\$.

Test cases

1 2 -> 1 2 2 -> 4 5 2 -> 3125 3 3 -> 7625597484987 etc. 

Scientific notation is acceptable.

Remember, this is , so the code with the smallest number of bytes wins.

Tetration, represented as a^^b, is repeated exponentiation. For example, 2^^3 is 2^2^2, which is 16.

Given two numbers a and b, print a^^b.

Test cases

1 2 -> 1 2 2 -> 4 5 2 -> 3125 3 3 -> 7625597484987 etc. 

Scientific notation is acceptable.

Remember, this is , so the code with the smallest number of bytes wins.

Tetration, represented as \${}^ba\$, is repeated exponentiation. For example, \${}^32\$ is \$2^{2^2}\$, which is \$16\$.

Given two numbers \$a\$ and \$b\$, print \${}^ba\$.

Test cases

1 2 -> 1 2 2 -> 4 5 2 -> 3125 3 3 -> 7625597484987 etc. 

Scientific notation is acceptable.

Remember, this is , so the code with the smallest number of bytes wins.

Tweeted twitter.com/StackCodeGolf/status/791560891007377408
Editing in extra test case
Source Link
izzyg
  • 42.3k
  • 5
  • 79
  • 216

Tetration, represented as a^^b, is repeated exponentationexponentiation. For example, 2^^3 is 2^2^2, which is 16.

Given two numbers a and b, print a^^b.

Test cases

1 2 -> 1 2 2 -> 4 5 2 -> 3125 3 3 -> 7625597484987 etc. 

Scientific notation is acceptable.

Remember, this is , so the code with the smallest number of bytes wins.

Tetration, represented as a^^b, is repeated exponentation. For example, 2^^3 is 2^2^2, which is 16.

Given two numbers a and b, print a^^b.

Test cases

1 2 -> 1 2 2 -> 4 5 2 -> 3125 etc. 

Scientific notation is acceptable.

Remember, this is , so the code with the smallest number of bytes wins.

Tetration, represented as a^^b, is repeated exponentiation. For example, 2^^3 is 2^2^2, which is 16.

Given two numbers a and b, print a^^b.

Test cases

1 2 -> 1 2 2 -> 4 5 2 -> 3125 3 3 -> 7625597484987 etc. 

Scientific notation is acceptable.

Remember, this is , so the code with the smallest number of bytes wins.

edited tags
Link
DJMcMayhem
  • 60.1k
  • 18
  • 203
  • 352
Source Link
Oliver Ni
  • 10.7k
  • 4
  • 42
  • 110
Loading