background preloader

Mathematics

Facebook Twitter

18.098 Street-Fighting Mathematics, January IAP 2008.

Linear_algebra

Matemáticas. High School Permutations ... Sieve of Eratosthenes. Sieve of Eratosthenes: algorithm steps for primes below 121 (including optimization of starting from prime's square).

Sieve of Eratosthenes

In mathematics, the sieve of Eratosthenes (Greek: κόσκινον Ἐρατοσθένους), one of a number of prime number sieves, is a simple, ancient algorithm for finding all prime numbers up to any given limit. It does so by iteratively marking as composite (i.e. not prime) the multiples of each prime, starting with the multiples of 2.[1] The multiples of a given prime are generated as a sequence of numbers starting from that prime, with constant difference between them which is equal to that prime.[1] This is the sieve's key distinction from using trial division to sequentially test each candidate number for divisibility by each prime.[2] The sieve may be used to find primes in arithmetic progressions.[5] Algorithm description[edit]

Learning How to Count (Avoiding The Fencepost Problem) Counting isn’t easy.

Learning How to Count (Avoiding The Fencepost Problem)

Suppose your boss wants you to work from 8am to 11am, and mop floors 8 to 11. Simple – it’s one floor per hour, right?