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 listMar 19, 2026 18:22Dominique GarmierDominique GarmierScore: 14,056Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 19, 2026 18:2213,98029,049,27312,302,00002,338,816
2Mar 19, 2026 18:2214,00335,026,53312,323,00002,338,816
3Mar 19, 2026 18:2214,03930,159,55911,325,0001,029,0002,347,008
4Mar 19, 2026 18:2214,04029,140,22611,326,0001,029,0002,351,104
5Mar 19, 2026 18:2214,05627,052,21612,369,00002,355,200
6Mar 19, 2026 18:2214,14731,113,89911,412,0001,037,0002,355,200
7Mar 19, 2026 18:2214,21032,907,94311,463,0001,042,0002,347,008
8Mar 19, 2026 18:2214,24428,998,97212,535,00002,465,792
9Mar 19, 2026 18:2214,26929,855,80911,511,0001,046,0002,342,912