HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Functions > problem:


020. 50575 - Number of Prime numbers

Guest
• Discussion of problem (2)

Volume problems

• 51012 - Palindrome-k
• 50559 - Prime Factors of a Number
• 002. 50428 - Three Times
• 003. 50432 - Numbers and Squares
• 004. 50433 - Sum of Cubes
• 005. 50595 - Sum of the numbers
• 010. 50582 - Number of digits
• 016. 50459 - The Biggest Digit
• 020. 50575 - Number of Prime n...
• 030. 50576 - Number of Perfect nu...
• 035. 50467 - Random Numbers
• 040. 50354 - Intersecting Rectangles
• 050. 50510 - What floor are they?
• 050. 50566 - Grade Point Average (...
• 060. 50727 - Fibonacci Numbers
• 061. 50733 - The Highest Average
• 062. 50390 - Total Salary Paid

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Prepared by Ibrahim Mesecan.

Number of Prime numbers

Shqip
Read two numbers and find out how many prime numbers are there between these numbers.
Input specification
There will be only two numbers in the input file which are between 1 < n < m ≤ 100000.
Output specification
If there is any prime between the numbers show the number of primes. Otherwise print "No" (without double quotations).
Input Output
5 10
2

Для отправки решений необходимо выполнить вход.

www.contester.ru