HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50650 - Prime numbers

Guest
• Discussion of problem (2)

Section problems

• 50299 - Median
• 50571 - Armstrong Numbers - 2
• 50572 - Palindromic Numbers
• 50582 - Number of digits
• 50583 - Max of 3 numbers
• 50585 - Inner Product
• 50587 - Modular Conversion
• 50633 - The prime factors
• 50650 - Prime numbers
• 50661 - nth Power of a Digit
• 50249 - Ladders
• 50641 - Strong Prime Power
• 50640 - Cubes
• 50412 - K numbers
• 50310 - Kinetic Energy
• 50316 - Population Bar Chart
• 50314 - Falling Distance

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.
Author: Fyodor Menshikov. Difficulty Alpha

Prime numbers

Russian
Derive all the prime numbers from M to N , inclusive.

Input
You will have two numbers separated by a space M and N .
Output
List all the prime numbers between M and N. Print the prime numbers in ascending order, one per line. If between M and N inclusive there is no prime number, write "Absent ".

Limitations
2 ≤ M N ≤ 300 000.

input 1 Input 2
2 5
4 4
Output 1 Output 2
2
3
5
Absent

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

www.contester.ru