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 7, 2026 03:25vahookvahookScore: 3,420Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 03:253,38315,151,845992,0001,985,0002,498,560
2Feb 7, 2026 03:253,38618,530,458993,0001,987,0002,494,464
3Feb 7, 2026 03:253,39019,941,654994,0001,989,0002,490,368
4Feb 7, 2026 03:253,40022,611,491997,0001,995,0002,494,464
5Feb 7, 2026 03:253,40621,532,444999,0001,998,0002,494,464
6Feb 7, 2026 03:253,41316,154,0571,001,0002,002,0002,494,464
7Feb 7, 2026 03:253,41618,946,4591,002,0002,004,0002,498,560
8Feb 7, 2026 03:253,42022,597,5631,003,0002,007,0002,494,464
9Feb 7, 2026 03:253,42420,144,7931,004,0002,009,0002,498,560
10Feb 7, 2026 03:253,42624,483,4211,005,0002,010,0002,498,560
11Feb 7, 2026 03:253,44324,641,2811,010,0002,020,0002,281,472
12Feb 7, 2026 03:253,45318,441,9181,013,0002,026,0002,539,520
13Feb 7, 2026 03:253,47821,161,3291,020,0002,041,0002,277,376
14Feb 7, 2026 03:253,48523,562,0171,022,0002,045,0002,277,376
15Feb 7, 2026 03:253,62717,925,9791,064,0002,128,0002,490,368