HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > "Informatics Stars" Online Contests - 2011-2014 > problem:


2012-12-30. 50684 - Sum of prime numbers from a to b

"Informatics Stars" Online Contests - 2011-2014

Start: Oct.20.2012 at 10:00:00 AM
Finish: Oct.20.2012 at 03:00:00 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (1)

Contest problems

• 2012-03-02. 50567 - Input Data No...
• 2012-03-04. 50597 - Drawing Diam...
• 2012-10-02. 50555 - Frequency of L...
• 2012-10-04. 50598 - Minimum Sum
• 2012-11-30. 50656 - Divisibility by 11
• 2012-11-40. 50558 - Biggest Barn
• 2012-12-10. 50546 - Average Fuel P...
• 2012-12-20. 50574 - Triangular Nu...
• 2012-12-30. 50684 - Sum of pr...
• 2013-01-10. 50584 - Total invoice ...
• 2013-01-30. 50599 - Sum of Squar...
• 2013-03-20. 50578 - Mersenne prime
• 2013-03-30. 50360 - National Elections
• 2013-03-40. 50705 - Student Clubs
• 2014-04-10. 50547 - Close Pair
• 2014-04-30. 50560 - Max Distance
• 2014-04-50. 50569 - 12th Grade Ele...

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.

Sum of prime numbers from a to b

Shqip

A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself. E.g. 2, 3, 5, 7, 11, 13, 17, 19, 23, 29...

Write a program that asks for a and b and finds the sum of all prime numbers from a to b assuming 1< a< b≤ 100.000.

Input Specification
There are only two int numbers space separated.

Output Specification
Show the sum of all prime numbers from a to b.

Sample Input I     
2 10   

Sample Output I
17

Sample Input II
10 25

Sample Output II
83

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

www.contester.ru