ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Разделы > Ad-Hoc > задача:


50493 - n-digit kth Prime Number

Гость
• Вопросы к жюри (1)

Задачи раздела

• 50406 - Draw Pattern 178
• 50416 - Placing Dominoes on Chess...
• 50477 - Character Pyramids
• 50498 - K-Means
• 50505 - kht Puzzle
• 50346 - The Biggest Date
• 50512 - Coding redundancy
• 50528 - Rock-Scissors-Paper
• 50493 - n-digit kth Prime Number
• 50520 - Filling a Matrix Randomly
• 50357 - Convert Euros into Dollars
• 50355 - Bills of City Water Company
• 50454 - What day is it?
• 50350 - Fahrenheit to Celsius
• 50356 - Hours Passed
• 50466 - Drawing Square From Stars
• 50351 - Convert inches to cm

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan.

n-digit kth Prime Number

Question: When calculating the area of an irregular polygon, all the vertices are written down in order ending with the starting vertex. Then the product of first y is with the second x is subtracted from the product of first x is with the second y.

Write a program that shows kth n-digit prime number. For example, the following are the first 10, 3-digit prime numbers:
   101 103 107 109 113 127 131 137 139 149
And, 5th 3-digit prime number is 113.

Input specification
You will be given two integers number (n and k) where is 1 ≤ n ≤ 12 and 1 ≤ k ≤ 100.

Output specification
Show one number: kth n-digit prime number.

 Sample Input I   
 4 2
 Sample Input II   
 10 10
 Sample Output I   
 1013
 Sample Output II   
 1000000181


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

www.contester.ru