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 30, 2026 22:33Dominique GarmierDominique GarmierScore: 39,356Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 30, 2026 22:3339,17854,557,48433,463,0001,014,0002,289,664
2Mar 30, 2026 22:4339,28460,741,97434,570,00002,289,664
3Mar 30, 2026 18:4839,32856,670,96033,592,0001,017,0002,371,584
4Mar 30, 2026 22:4339,35257,318,02533,612,0001,018,0002,289,664
5Mar 30, 2026 18:4839,35663,813,61633,615,0001,018,0002,289,664
6Mar 30, 2026 22:4339,44165,556,73334,708,00002,289,664
7Mar 30, 2026 18:4839,45262,415,70533,697,0001,021,0002,355,200
8Mar 30, 2026 22:3339,46465,179,68033,707,0001,021,0002,281,472
9Mar 30, 2026 22:3339,64564,350,83932,895,0001,993,0002,355,200