Logo
(追記) (追記ここまで)

15373번 - A Simple Problem! 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
3 초 (추가 시간 없음) 512 MB238594828.070%

문제

Given a positive integer N, what is the minimum positive integer K such that K! is a multiple of the square of N!?

Note that a is a multiple of b if a = b · k for some integer k.

Moreover, note that for any positive integer M, M! is the product of all positive integers whose value is at most M.

입력

The first line of input contains T, the number of test cases. The following lines describe the test cases.

Each test case consists of one line containing a single integer, N.

Constraints

  • 1 ≤ T ≤ 200000
  • 1 ≤ N ≤ 200000

출력

For each test case, print a single integer which is the answer for that test case.

제한

예제 입력 1

5
4
5
7
11
24

예제 출력 1

8
10
14
22
48

힌트

출처

ICPC > Regionals > Asia Pacific > Philippines > 2016 ACM-ICPC Asia-Manila Regional Programming Contest 연습 세션 PB번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /