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 19:35vahookvahookScore: 3,320Success
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 19:353,31118,757,105971,0001,943,0002,510,848
2Feb 7, 2026 19:353,31819,872,977973,0001,947,0002,506,752
3Feb 7, 2026 19:353,31816,666,3231,947,000973,0002,506,752
4Feb 7, 2026 19:353,31824,663,797973,0001,947,0002,510,848
5Feb 7, 2026 19:353,32017,556,0931,948,000974,0002,506,752
6Feb 7, 2026 19:353,32219,285,4891,949,000974,0002,506,752
7Feb 7, 2026 19:353,32420,836,9141,950,000975,0002,506,752
8Feb 7, 2026 19:353,33523,341,424978,0001,957,0002,277,376
9Feb 7, 2026 19:353,40619,196,163999,0001,998,0002,506,752