АВТ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
News FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

1351. Prime Numbers

Time Limit: 1 seconds
Memory Limit:262144KB
Points:100
View Problem Statistics Submit Problem added debug

Найти все простые числа на отрезке от M до N включительно
(1
<= M <= N <= 100 000), если их на заданном отрезке нет — вывести -1. Вывести числа в ответе по возрастанию.

 

Пример:

Ввод

Вывод

2

10

2

3

5

7


View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / Contest VML 22.03.2015 /
1350. C - Fibonacci Numbers 1351. 1352. E - Deletion of Repeats 1353. F - 16 -> 20 1354. G - Serpent
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / Contest VML for 7 Form, cycles /
1821. 14 - Prime or not prime? 1351. 1822. 16 - Ascending Order 1823. 17 - Saw-shaped sequence
Educational Courses / C++ Programming Language / Cycles, arrays /
1820. 02 - Unique numbers 1351. 717. 04 - Веселый программист 1350. 05 - Fibonacci Numbers 1830. 06 - Even and odd numbers
Problems from Contests and Camps / School olympiads and couses of Vologda region / Impulse - 2019 / Number Theory /
482. 06 - Multiple with equal digits 1351. 1736. 08 - Sum of Digits 1739. 09 - Euler Function 1866. 10 - Flowers
Problems from Contests and Camps / School olympiads and couses of Vologda region / Impulse, september 2020 / Opening Olympiad, Impulse, 2020 /
1350. 03 - Fibonacci Numbers 1351. 1352. 05 - Deletion of Repeats 1353. 06 - 16 -> 20 1354. 07 - Serpent
Problems from Contests and Camps / School olympiads and couses of Vologda region / Impulse, August-September 2022 / Impulse, August-September 2022, Closing Olympiad for Beginners /
1350. 03 - Fibonacci Numbers 1351. 1352. 05 - Deletion of Repeats 1353. 06 - 16 -> 20 1354. 07 - Serpent
time generating 0.125 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.