Skip to main content
Tweeted twitter.com/StackCodeGolf/status/869581829132754947
edited tags
Link
Arjun
  • 5.1k
  • 2
  • 24
  • 56
Source Link
Arjun
  • 5.1k
  • 2
  • 24
  • 56

General tips for representing large numbers

Sometimes, while golfing, one needs to represent large number(s) in their code. Writing them as is can significantly increase the byte-count.

What general1 tips do you have for representing long numbers concisely in code?

Please post one tip per answer.


1With general, I mean tips that can be applied to more than a single language. For language-specific tips, post in their respective thread.