HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Functions > problem:


030. 50576 - Number of Perfect numbers

Guest
• Discussion of problem (3)

Volume problems

• 51012 - Palindrome-k
• 50469 - Letter Grades
• 50539 - Number of Chairs - 2
• 003. 50432 - Numbers and Squares
• 004. 50433 - Sum of Cubes
• 005. 50595 - Sum of the numbers
• 016. 50459 - The Biggest Digit
• 020. 50575 - Number of Prime num...
• 030. 50576 - Number of Perfect ...
• 050. 50510 - What floor are they?
• 050. 50566 - Grade Point Average (...
• 066. 50523 - Total Tax to Pay
• 070. 50534 - Top Trading Company
• 095. 50453 - The Cubic Difference
• 125. 50578 - Mersenne prime
• 132. 50474 - Sum of Two Primes
• 165. 50577 - Perfect Numbers and ...

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 Perfect numbers

Shqip
Perfect number is a number whose sum of divisors are equal to the number itself.
e.g. 6 is a perfect number because sum of its divisors is 1+2+3=6.
Read two numbers and find out how many perfect numbers are there between these numbers.
Input specification
There will be only two numbers in the input file which are between 1 < n < m ≤ 20000.
Output specification
Between the given numbers, show the number of perfect numbers,if there is any. Otherwise print "No" (without double quotations).
Input I Output 1
5 30
2

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

www.contester.ru