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 6, 2026 21:22vahookvahookScore: 3,433Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 18:483,40617,236,827999,0001,998,0002,498,560
2Feb 6, 2026 21:223,40918,133,1861,000,0002,000,0002,494,464
3Feb 6, 2026 21:223,41018,324,0651,000,0002,001,0002,494,464
4Feb 6, 2026 18:483,42618,956,8621,005,0002,010,0002,506,752
5Feb 6, 2026 18:483,42619,698,8151,005,0002,010,0002,277,376
6Feb 6, 2026 18:473,43121,199,9691,006,0002,013,0002,502,656
7Feb 6, 2026 18:473,43120,468,7391,006,0002,013,0002,494,464
8Feb 6, 2026 21:223,43315,581,8971,007,0002,014,0002,494,464
9Feb 6, 2026 18:473,44317,788,6091,010,0002,020,0002,490,368
10Feb 6, 2026 21:223,44719,059,4541,011,0002,022,0002,535,424
11Feb 6, 2026 21:223,45022,556,8231,012,0002,024,0002,502,656
12Feb 6, 2026 21:223,45122,993,8911,012,0002,025,0002,281,472
13Feb 6, 2026 21:223,45124,794,7221,012,0002,025,0002,498,560
14Feb 6, 2026 21:223,45721,644,6171,014,0002,028,0002,498,560
15Feb 6, 2026 21:223,45723,367,9621,014,0002,028,0002,494,464