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 21, 2026 02:14Dominique GarmierDominique GarmierScore: 13,550Success
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 22:4413,53527,500,4939,926,0001,985,0002,273,280
2Mar 21, 2026 02:1413,54325,091,8799,932,0001,986,0002,273,280
3Mar 19, 2026 22:3113,54424,754,73610,926,000993,0002,400,256
4Mar 19, 2026 22:3113,54927,403,22910,930,000993,0002,273,280
5Mar 19, 2026 22:4413,55032,640,15110,931,000993,0002,273,280
6Mar 21, 2026 02:1413,58830,575,15410,961,000996,0002,273,280
7Mar 19, 2026 22:3113,64828,708,35011,010,0001,000,0002,273,280
8Mar 19, 2026 22:4413,66432,314,78711,022,0001,002,0002,273,280
9Mar 21, 2026 02:1413,75329,711,53811,095,0001,008,0002,273,280