Biprime number
Easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
A semiprime, also known as a biprime, is a natural number that is the product of two prime numbers. Your task is to find the N-th biprime number in sequence and output its two prime factors.
Input: A natural number N, where (1 N 10^5).
Output: The N-th biprime number and its two prime factors, listed in non-decreasing order.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 16%