the lost developer

mostly .NET stuff

Project Euler - Problem Nine

clock May 29, 2008 19:23 by author eric

Yes, I know I skipped problem 8, but it involves strings, and I found nine easier to do More...

Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Project Euler - Problem Six

clock May 25, 2008 11:39 by author eric

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

1² + 2² + ... + 10² = 385

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

(1 + 2 + ... + 10)² = 55² = 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 = 2640.

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

This problem is easy in both C# and F# More...

Currently rated 1.0 by 1 people

  • Currently 1/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Project Euler - Problem Five

clock May 25, 2008 11:04 by author eric

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.

What is the smallest number that is evenly divisible by all of the numbers from 1 to 20?

This is a problem that can be brut forced. More...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Project Euler - Problem Four

clock May 25, 2008 09:52 by author eric

A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.

Find the largest palindrome made from the product of two 3-digit numbers.

The easiest way to reverse a number is to convert the number to a string then to a character array and call reserve More...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Project Euler - Prime Numbers - Problem Three and Seven

clock May 25, 2008 09:33 by author eric

 

Many of the Project Euler problems require prime number to solve, so I wrote a prime number generator in both F# and C#.  I think that my implementation in C# is more efficient More...

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Project Euler - Problem Two (YAPES)

clock May 16, 2008 14:25 by author eric

Problem Two is defined as

 

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:

1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...

Find the sum of all the even-valued terms in the sequence which do not exceed four million.

More...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Project Euler - Problem One (YAPES)

clock May 16, 2008 12:08 by author eric

In order to learn F#, I decided to work through the Project Euler problem sets. More...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Simple Keyword Framework with TestComplete - Part 1 - The object map

clock May 12, 2008 18:37 by author eric

In traditional keyword frameworks, the object map (name mapping in TestComplete terms) is kept in a separate file than the project it self.  More...

Currently rated 1.0 by 1 people

  • Currently 1/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Search

    Calendar

    <<  February 2012  >>
    SuMoTuWeThFrSa
    2930311234
    567891011
    12131415161718
    19202122232425
    26272829123
    45678910

    Archive

    Tags

    Categories


    Blogroll

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2012

    Sign in