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 14, 2026 15:36Dominique GarmierDominique GarmierScore: 54,005Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 14, 2026 15:3853,88173,503,10047,415,00002,383,872
2Mar 14, 2026 15:3853,91070,115,78146,432,0001,009,0002,482,176
3Mar 14, 2026 15:3654,00271,323,93846,511,0001,011,0002,273,280
4Mar 14, 2026 15:3654,00570,262,76546,513,0001,011,0002,396,160
5Mar 14, 2026 15:3854,01769,285,50646,524,0001,011,0002,281,472
6Mar 14, 2026 15:3654,10369,622,28747,611,00002,379,776