News for hackers. Stuff that matters.
Re:Show HN: My brother wrote this program from jail by scott31 on Thursday August 20, 2020 @01:18PM (#24225766)
It seems buggy, typed numbers a = 18014398509481984, b = 1, and c = 1 and getting result "the sum of all inputs is 18014398509481984"
Re:Show HN: My brother wrote this program from jail by TeddyBones on Saturday August 22, 2020 @05:48AM (#24243000)
I wouldn't say buggy, and definitely not to a beginner writing a program like this.

What you're seeing is a limitation of javascript. Big numbers need to use BigInt.