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:44Dominique GarmierDominique GarmierScore: 13,966Success
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:4413,82830,090,24511,155,0001,014,0002,379,776
2Mar 19, 2026 18:4413,86033,109,18011,181,0001,016,0002,371,584
3Mar 19, 2026 18:4413,88534,066,97910,183,0002,036,0002,379,776
4Mar 19, 2026 18:4413,95132,028,96011,254,0001,023,0002,310,144
5Mar 19, 2026 18:4413,96625,379,80211,266,0001,024,0002,310,144
6Mar 19, 2026 18:4413,98231,638,20811,279,0001,025,0002,383,872
7Mar 19, 2026 18:4414,04828,503,19011,332,0001,030,0002,383,872
8Mar 19, 2026 18:4414,04943,895,54810,303,0002,060,0002,375,680
9Mar 19, 2026 18:4414,09828,438,03511,373,0001,033,0002,301,952