Project Euler: Problem 8

Find the greatest product of five consecutive digits in the 1000-digit number.

73167176531330624919225119674426574742355349194934
96983520312774506326239578318016984801869478851843
85861560789112949495459501737958331952853208805511
12540698747158523863050715693290963295227443043557
66896648950445244523161731856403098711121722383113
62229893423380308135336276614282806444486645238749
30358907296290491560440772390713810515859307960866
70172427121883998797908792274921901699720888093776
65727333001053367881220235421809751254540594752243
52584907711670556013604839586446706324415722155397
53697817977846174064955149290862569321978468622482
83972241375657056057490261407972968652414535100474
82166370484403199890008895243450658541227588666881
16427171479924442928230863465674813919123162824586
17866458359124566529476545682848912883142607690042
24219022671055626321111109370544217506941658960408
07198403850962455444362981230987879927244284909188
84580156166097919133875499200524063689912560717606
05886116467109405077541002256983155200055935729725
71636269561882670428252483600823257530420752963450

Continue reading Project Euler: Problem 8

WP Latex test page

So, as my brother noticed in my last post, I have some cool equations here. The brilliance behind it is something called LaTeX, which can be used in WordPress blogs thanks to the WP LaTeX plugin.

I am a total LaTeX newbie though, so I often struggle a bit with… getting it right. Trying it out by previewing WordPress posts is sloooow, so I decided to create myself a simple test-rig. A simple web page with a form and a button.

Let me know if you like it: tools.geekality.net/wp-latex 8)

Project Euler: Problem 6

The sum of the squares of the first ten natural numbers is,

1^2 + 2^2 + \ldots + 10^2 = 385

The square of the sum of the first ten natural numbers is,

(1 + 2 + \ldots + 10)^2 = 55^2 = 3025

Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 — 385 = 3640.

Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.

So, apparently my brother has joined me on my Project Euler solving quest. You can see his Delphi solution on his blog. My C# solution, you can find below 🙂

Continue reading Project Euler: Problem 6

Wild at Heart

The book cover of Wild at HeartThe other day I started reading a book called Wild at Heart. So far it has been a great book and fun to read. Certain things has already started to make a bit more sense than they did before.

Two of the many very interesting paragraphs from it:

There are three desires I find written so deeply into my heart I know now I can no longer disregard them without losing my soul. They are core to who and what I am and yearn to be. I gaze into boyhood, I search the pages of literature, I listen carefully to many, many men, and I am convinced these desires are universal, a clue into masculinity itself. They may be misplaced, forgotten, or misdirected, but in the heart of every man is a desperate desire for a battle to fight, an adventure to live, and a beauty to rescue. I want o you think of the films men love, the things they do with their free time, and especially the aspirations of little boys and see if I am not right on this.

There are also three desires that I have found essential to a woman’s heart, which are not entirely different from a man’s and yet they remain distinctly feminine. Not every woman wants a battle to fight, but every woman years to fought for. Listen to the longing of a woman’s heart: She wants to be more than noticed—she wants to be wanted. … Every woman also wants an adventure to share. … So many men make the mistake of thinking that the woman is the adventure. But that is where the relationship immediately goes downhill. A woman doesn’t want to be the adventure; she wants to be caught up into something greater than herself. … And finally, every woman wants to have a beauty to unveil. Not to conjure, but to unveil. Most women feel the pressure to be beautiful from very young, but that is not what I speak of. There is also a deep desire to simply and truly be the beauty, and be delighted in.

OK, actually that last one is three paragraphs in the book. But tried to get the similar three points that was mentioned for men (And for men they are each elaborated in three sub chapters).

Aaaanyways, very interesting book. You should definitely read it, especially if you are a guy. Could be interesting if you are a woman too of course, but I can only speak for myself, who is a guy. For women there is actually a similar book called Captivating, which I have heard is very good as well. I haven’t read it yet though… but I will 😉

Highly recommend them! Get them from Amazon, they are not even expensive 😀

What do you think about this matter? Did it sound about right? What is in the innermost parts of your heart?

With a hint of Social Ineptitude