Your browser (Unknown 0) is no longer supported. Some parts of the website may not work correctly. Please update your browser.
AVAILABLE LESSONS:
Lesson 1
Iterations
Lesson 2
Arrays
Lesson 3
Time Complexity
Lesson 4
Counting Elements
Lesson 5
Prefix Sums
Lesson 6
Sorting
Lesson 7
Stacks and Queues
Lesson 8
Leader
Lesson 9
Maximum slice problem
Lesson 10
Prime and composite numbers
Lesson 11
Sieve of Eratosthenes
Lesson 12
Euclidean algorithm
Lesson 13
Fibonacci numbers
Lesson 14
Binary search algorithm
Lesson 15
Caterpillar method
Lesson 16
Greedy algorithms
Lesson 17
Dynamic programming
Lesson 90
Tasks from Indeed Prime 2015 challenge
Lesson 91
Tasks from Indeed Prime 2016 challenge
Lesson 92
Tasks from Indeed Prime 2016 College Coders challenge
Lesson 99
Future training
Lesson 11

Sieve of Eratosthenes

Open reading material (PDF)

Tasks:

respectable

CountSemiprimes

VIEW START
Count the semiprime numbers in the given range [a..b]
respectable

CountNonDivisible

VIEW START
Calculate the number of elements of an array that are not divisors of each element.

For programmers

LessonsChallengesTermsFAQPrivacy

For companies

TourAbout usPricingJobsBlogTermsPrivacyCookiesAPI

Sign up for our newsletter:

Information about upcoming challenges, solutions and lessons directly in your inbox.

Social:

Contact us:

For customer support queries:

UK +44 (208) 970 78 68

US 1-415-466-8085

support@codility.com

For sales queries:

UK +44 (208) 970 78 68

US 1-415-466-8085

sales@codility.com

© 2009–2019 Codility Ltd., registered in England and Wales (No. 7048726). VAT ID GB981191408. Registered office: 107 Cheapside, London EC2V 6DN