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 03:05vahookvahookScore: 3,734Success
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 03:053,70720,158,7002,175,0001,087,0002,277,376
2Feb 4, 2026 03:053,71316,646,6872,178,0001,089,0002,277,376
3Feb 4, 2026 03:053,72320,527,5892,184,0001,092,0002,498,560
4Feb 4, 2026 03:053,72321,503,2802,184,0001,092,0002,502,656
5Feb 4, 2026 03:053,73425,142,8592,191,0001,095,0002,277,376
6Feb 4, 2026 03:053,75116,185,7692,201,0001,100,0002,494,464
7Feb 4, 2026 03:053,75323,608,5932,202,0001,101,0002,490,368
8Feb 4, 2026 03:053,76419,441,0962,208,0001,104,0002,277,376
9Feb 4, 2026 03:053,79823,211,9602,228,0001,114,0002,277,376