Git Product home page Git Product logo

sieve-of-eratosthenes-1's Introduction

Sieve of Eratosthenes

Sieve of Eratosthenes is an iOS application that implements the Sieve of Eratosthenes Algorithm to help the user in finding all the prime numbers up to a specific limit.

Platform

iOS, Swift, Objective-C

Eratosthenes (276-194 B.C.)

Eratosthenes was the third librarian of the famous library in Alexandria and an outstanding scholar all around. He is remembered by his measurement of the circumference of the Earth, estimates of the distances to the sun and the moon, and, in mathematics, for the invention of an algorithm for collecting prime numbers. The algorithm is known as the Sieve of Eratosthenes

Sieve of Eratosthenes Algorithm

The Sieve of Eratosthenes, one of a number of prime numbers 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.

The number of a given prime are generated as a sequence of numbers starting from that prime, with constant difference between them that is equal to that prime. This is the sieve's key distinction from using trial division to sequentially test each candidate number for divisibility by each prime.

The Sieve of Eratosthenes is one of the most efficient ways to find all of the smaller primes. It is named after Eratosthenes of Cyrene, a Greek mathematician; although none of his works has survived, the sieve was described and attributed to Eratosthenes in the Introduction of Arithmetic by Nicomachus.

Video Walkthrough

Here's a walkthrough of Implementation of the Sieve of Eratosthenes in the application:

sieveoferatosthenes

GIF created with [LiceCap] (http://www.cockos.com/licecap/).

Cloning the Project

Get started by cloning the project to your local machine: https://github.com/akashungarala/Sieve-of-Eratosthenes

sieve-of-eratosthenes-1's People

Contributors

akashungarala avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.