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

18384번 - PRIM 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB21317311988.806%

문제

Given an array of integer numbers with 5 elements and for each of its elements, find the smallest prime number which is not less than that element.

입력

The first line shows the number of test cases (T).

For each test case, we will have an array of integers (I) with length n in space-separated format.

  • 0 < I < 106
  • 0 < n < 106

출력

Print the sum of obtained prime numbers for each test case.

제한

예제 입력 1

2
1254 12 1859 9762 6
5 6 8 10 15

예제 출력 1

12907
51

힌트

출처

ICPC > Regionals > Asia West Continent > Afghanistan > Asia-Kabul ICPC Regional Contest 2018 C번

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

출처

대학교 대회

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

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