Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listFeb 5, 2026 02:24vahookvahookScore: 3,475Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2026 02:243,45319,309,5811,013,0002,026,0002,498,560
2Feb 5, 2026 15:053,46117,321,3881,015,0002,031,0002,490,368
3Feb 5, 2026 02:243,46417,297,4891,016,0002,032,0002,490,368
4Feb 5, 2026 02:243,46418,321,2121,016,0002,032,0002,490,368
5Feb 5, 2026 02:243,46721,853,5021,017,0002,034,0002,490,368
6Feb 5, 2026 02:243,46821,245,4431,017,0002,035,0002,490,368
7Feb 5, 2026 02:243,47419,328,0911,019,0002,038,0002,535,424
8Feb 5, 2026 02:243,47520,342,8411,019,0002,039,0002,494,464
9Feb 5, 2026 02:243,47822,848,6571,020,0002,041,0002,277,376
10Feb 5, 2026 15:053,48121,476,5321,021,0002,042,0002,281,472
11Feb 5, 2026 02:243,49220,616,7241,024,0002,049,0002,494,464
12Feb 5, 2026 02:243,49420,914,8041,025,0002,050,0002,498,560
13Feb 5, 2026 02:243,50919,790,6291,029,0002,059,0002,281,472
14Feb 5, 2026 15:053,53018,229,2971,035,0002,071,0002,535,424
15Feb 5, 2026 02:243,53618,638,3291,037,0002,075,0002,490,368