# Self-hatred

## Elementary mathematics versus trade chat:

[2] [Xikten]: 6 – 6 * 6 = ? [2] [Prettzz]: 0 [2] [Galishavi]: -30 [2] [Squix]: 0 [2] [Zedtardd]: 30 [2] [Xikten]: lol at 0 [2] [Shavok]: its 30 baddies [2] [Theetroll]: 2256577564423123356 [2] [Katzbalger]: galishavi wins [2] [Shearshock]: 30 [2] [Liljugg]: ya mum [2] [Shearshock]: bedmas cmonnn [2] [Gwizzle]: OVER 9000!!!!! [2] [Xikten]: [...]

## Project Euler Problem #23

This problem sucked. A benchmark for my solution is seemingly required for proper horn-tooting: 00:00:03.9170605 This problem, like Problem #19 threw me to the mental wolves. Keeping with the comparisons to #19, I also had to build up a supporting clade of methods to process the different elements of the problem. The core of the [...]

## Project Euler Problem #20

using System; using System.Numerics; public class Twenty { static void Main() { BigInteger a = 100; string b; int c = 0; for (int i = 99; i >= 1; i–) a *= i; b = Convert.ToString(a); for (int i = 0; i < b.Length; i++) c += b[i] – ’0′; Console.WriteLine(“\n{0}\n”, c); } }

## Project Euler Problem #18

I am beginning to feel as if my head is full of mush every time I have to deal with a jagged array in a loop. I stole the solution from here, but the code is entirely my own. In short, you begin at the bottom-left corner of the jagged array. You move to the [...]

## Project Euler Problem #17

Non-admission: I Google around for other solutions to problem as I work on them. I have no intention of copying anyone else’s approach to a problem, although I do look for mathematical terms to search for in turn. Looking at many of the posted solutions, I saw either crazily branching decision structures or more-or-less tiresome [...]

## Project Euler Problem #16

/twitch Anything to avoid using VS, right? For my pain, I learned that Bash, while being excellent for fast big arithmetic operations (compared to C#), doesn’t enjoy working with large multiples or exponents. using System; using System.Numerics; class Program { static void Main() { BigInteger a; string b; int c = 0; a = BigInteger.Pow(2, [...]

## Project Euler Problem #15

So, the answer was staring at me all along. No, really. Look at this picture: On the left is a bog-standard Pascal Triangle. On the right is the example problem on the Project Euler website. I drew this diagram on paper, and what immediately leaped out of me was that the number I need (the [...]