#WEEKLY 17
WEEKLY 17
For this one, I had two options. Use a formula, or try to replicate a loop. I did both!
Method 1
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
JackFly26 (97)
ayy yw
k9chelsea2 (785)
nice
Coder100 (17091)
thanks! @k9chelsea2
SCORED.