Share your repls and programming experiences

← Back to all posts
#WEEKLY 17
h
Coder100 (17091)

WEEKLY 17

For this one, I had two options. Use a formula, or try to replicate a loop. I did both!

Method 1

The formula is

Not very accurate, can only go up to ~50.

Method 2

I basically used rl.on("line") as my pseudo-loop. Really liked how it turned out! It is very accurate using BigInt! See how big you can get before you crash (about a million digits I think before BigInt breaks I think)

I also re-implemented this in rust. You can see the repl here (special thanks to @ThatSmart for answering questions)

Closing

I hope this meets the requirements and I don't get disqualified! @TheDrone7

Comments
hotnewtop