jueves, 8 de octubre de 2009

Criba de Eratóstenes



La criba de Eratóstenes es un algoritmo que permite hallar todos los números primos menores que un número natural dado N. Se forma una tabla con todos los números naturales comprendidos entre 2 y N y se van tachando los números que no son primos de la siguiente manera: cuando se encuentra un número entero que no ha sido tachado, ese número es declarado primo, y se procede a tachar todos sus múltiplos. El proceso termina cuando el cuadrado del mayor número confirmado como primo es mayor que N.

Da click en la imagen, y la comprenderas mejor

1 comentarios:

Anónimo dijo...

That just about wraps it up. My collection of the very best centre forwards to kick a ball for Manchester Utd before Ferguson's days. Are you wondering why I decided to only include pre-Ferguson players in this list? Actually it's simply because I feel the forwards that have been at Utd during Alex Ferguson's lengthy leadership in charge of United require a write up all to themselves. Sir Alex Ferguson hasn't been short of forwards to chose from. There is a good chance this wont be my last word on the issue. A piece on the strikers who played for Alex may be on the cards. manchester united [url=http://www.pulsebet.com]arsenal football[/url] Among Manchester’s other professional sports teams are the Wigan Warriors of the Rugby League, the Salford City Reds, the Oldham Roughyeds, Rochdale Hornets, Swinton Lions, Sale Sharks, Belle Vue Aces, Manchester Phoenix and others. [url=http://www.pulsebet.com]wayne rooney[/url] Back in the Newton Heath era, the kits were made up of yellow and green stitched sections (1878 - 1892), and looked a bit like a jockey's silks. Some additional colour schemes were also employed such as a red and white shirt (1892-1894) paired with blue shorts. This all changed in 1902 when the club changed its name to Manchester United, the club radically altered the kit colours to red shirts, white shorts and black socks. This colour palette has been the foundation of the home strip ever since. The away strip is white jerseys, black shorts and white socks however different looks to this strip have existed. The most notorious of these was the all-grey strip employed in the 1995-1996 campaign. The club did not win a single game when sporting the grey shirts. The team were vociferous in their claims that the drab colour meant they had difficulty seeing their team-mates, hence passes were being sprayed all over the pitch! Another variation was the all-black kit used in 1994 and 2003. There is also a "Third Strip". This shirt which is not often used, is an homage to the kit worn when the club won the 1968 European Cup. The team has occasionally used the strips employed for training sessions in actual matches although this has been a rare occurence.