- MBTI
- INTJ
- Enneagram
- ?
Although I think many INFJs will beg to differ with my title, I find the programming puzzles on projecteuler.net to be addicting. The interesting thing is that although it's possible to solve most puzzles by brute force (i.e., plug in every single number until one works), the philosophy is that you ought to create a program that will calculate in under a minute, and often, under a second.
For example, one problem was to find the last 10 digits of the expression:
You could theoretically just add all 1000 terms and find the last 10 digits then, but most programming languages do not calculate numbers anywhere near the size of 1000^1000. And it's more fun to be creative =)
For example, one problem was to find the last 10 digits of the expression:
Code:
1^1 + 2^2 + 3 ^3 + 4^4 ... + 999^999 + 1000^1000
You could theoretically just add all 1000 terms and find the last 10 digits then, but most programming languages do not calculate numbers anywhere near the size of 1000^1000. And it's more fun to be creative =)