Problem list
Log in
#r00051 · CUSTOM

골드바흐 파티션

Unrated 1.0 s 256 MB

테스트케이스의 수 t가 주어진다. 그리고 i번째 줄에 정수 n이 주어진다. n의 골드바흐 파티션의 수를 구하라.

Input

n이 주어진다.

Output

n의 골드바흐 파티션의 수를 출력한다.

Constraints

1 <= t <= 10000, 4 <= t_i <= 1000000, t_i는 짝수

Example 1

Input
3
14
123456
4
Output
2
1452
1

Example 2

Input
1
1000000
Output
5402
Source
CUSTOM by joomongogo
Appears in
Not part of a ladder, contest or set yet.
Accepted 1 Submissions 2 Acceptance 50% Solvers 1

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code