30
faheel
4y

Wrote a C++ program that calculates the binomial coefficient C(n, k) using a 2D vector of 64-bit unsigned integers, and without thinking gave it the input 65535 for both n and k to "stress test" it. Only after my laptop froze did I realized that I should have upgraded the RAM to 32 GB before pulling of this stress test.
Felt like a dumb user afterwards ☹️

Comments
  • 9
    I'm sure there are words in there somewhere. It looks suspiciously like maths, though. Therefore beyond me.

    Kudos on understanding what you were doing regardless of any hiccups. I just have no idea what you're talking about.
  • 1
    main[-1u]={1};
    gcc -mcmodel=medium cbomb.c -o cbomb
    Its c but try it and tell me what happens, also use 16GB RAM for this, no thing much of a deal
  • 3
    @CrankyOldDev Yes, it's all math related :)
  • 1
    @sam9669 I'll try it on VirtualBox when I log on to Windows next time ;)
    Would have tried it on Ubuntu, but then it says "cbomb" so don't want to take any risk. Though I figure the effect would be similar to a fork bomb 🤔
  • 5
    So much of nosebleed-inducing math in there, reminds me of high school.
  • 6
    @CrankyOldDev Exactly the same here, man i can't even do basic maths!
  • 1
  • 2
    This is difficult math?
    Come on people, math is your friend 🙁
Add Comment