Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 564 Bytes

File metadata and controls

24 lines (19 loc) · 564 Bytes

Counting Primes

Challenge Description:

Given two integers N and M, count the number of prime numbers between N and M (both inclusive)

Input sample:

Your program should accept as its first argument a path to a filename. Each line in this file contains two comma separated positive integers. E.g.

2,10
20,30

Output sample:

Print out the number of primes between N and M (both inclusive)

4
2