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 4, 2026 23:50vahookvahookScore: 3,484Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 23:503,46424,071,3311,016,0002,032,0002,494,464
2Feb 4, 2026 23:503,46720,260,6971,017,0002,034,0002,498,560
3Feb 4, 2026 23:503,47019,133,4241,018,0002,036,0002,281,472
4Feb 4, 2026 23:493,47417,406,1811,019,0002,038,0002,490,368
5Feb 4, 2026 23:493,47824,425,5371,020,0002,041,0002,498,560
6Feb 4, 2026 23:503,47818,555,3891,020,0002,041,0002,535,424
7Feb 4, 2026 23:503,48423,212,8331,022,0002,044,0002,498,560
8Feb 4, 2026 23:493,48524,324,2291,022,0002,045,0002,494,464
9Feb 4, 2026 23:503,50824,732,5561,029,0002,058,0002,494,464
10Feb 4, 2026 23:503,53325,046,5431,036,0002,073,0002,498,560
11Feb 4, 2026 23:503,64916,352,2261,070,0002,141,0002,494,464
12Feb 4, 2026 23:503,69221,360,2091,083,0002,166,0002,277,376