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:48Dominique GarmierDominique GarmierScore: 54,094Success
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:4153,96671,900,84847,490,00002,281,472
2Mar 14, 2026 15:4153,99171,672,36246,502,0001,010,0002,392,064
3Mar 14, 2026 15:4854,00069,170,40346,509,0001,011,0002,281,472
4Mar 14, 2026 15:4854,09470,639,52246,591,0001,012,0002,379,776
5Mar 14, 2026 15:4154,18681,653,64547,684,00002,281,472
6Mar 14, 2026 15:4854,24580,841,86746,721,0001,015,0002,379,776