Skip to content

Latest commit

 

History

History

063-counting-primes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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