This snippet is code that solves first Project Euler problem. It finds the sum of all the multiples of 3 or 5 below 1000. Please add other (more efficient, succinct or interesting) solutions to this snippet.72 people like this
Posted: 8 years ago by Eugene Gavrin
The RSA encryption is based on the following procedure:
Generate two distinct primes p and q. Compute n=pq and phi=(p-1)(q-1).
Find an integer e, 1 Posted: 8 years ago by
Like the snippet!
Posted: 8 years ago by Natallie Baikevich
Euler #5 solution3 people like this
Posted: 7 years ago by Michael Falanga
Solution to Project Euler problem 2: Find sum of even terms in fibonacci sequence which do not exceed four million. Comments about the first version: 1. It does't use memoize becouse of recursive call to unmemoized function "fibs". So it take over 20 sec to get answer. A minor change ("fibs" to "fibs' ") reduces this time to 140ms.35 people like this
Posted: 8 years ago by D
Primitive Pythagorean triples generator. It uses an Algorithm found on Wolfram MathWorld and the F# PowerPack matrix library.46 people like this
Posted: 7 years ago by Cesar Mendoza