Project Euler 3 in c#
Problem 3: What is the largest prime factor of the number 600851475143 ?
With enough extension methods we can make 3 really simple:
600851475143.LargestPrimeFactor()
Where:
It is somewhat abandoned.
Problem 3: What is the largest prime factor of the number 600851475143 ?
With enough extension methods we can make 3 really simple:
600851475143.LargestPrimeFactor()
Where:
If you would like to expose the results of an entity framework call as the index page or any other get based url using naked object mvc, a custom controller is required.
Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.
Ok, this one is stupidly simple:
var squaredsum = Math.Pow(1.To(100).Sum(), 2);
var sumedsquare = 1.To(100).Select(x => x * x).Sum();
Console.WriteLine(squaredsum - sumedsquare);
Here is my solution to the following project Euler Problem:
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 positive number that is evenly divisible by all of the numbers from 1 to 20?
NakedObjectsFramework antlr aop attribute-based-caching bitcoin blog bluetooth books brain_gym c# ci clojure comedy cte data draft emacs ergodox essay euler f# faq field-level-authorization fitness git good-judgement-project gym hakyll haskell haskell-is-hard humor ideas keyboard lets-split merging nix nixos nparsec parsec parser parser-combinator paul-graham planck postgres postsharp prediction presentation release row-level-authorization scala slick tags thinkpad tuples update windows wordpress wssf