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 26, 2026 14:56Dominique GarmierDominique GarmierScore: 13,913Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 26, 2026 14:2913,74829,242,83011,090,0001,008,0002,285,568
2Mar 26, 2026 14:2913,79833,112,13110,119,0002,023,0002,277,376
3Mar 26, 2026 14:2913,81133,663,84010,129,0002,025,0002,293,760
4Mar 26, 2026 14:5613,91333,677,87810,203,0002,040,0002,273,280
5Mar 26, 2026 14:5613,97827,146,21410,251,0002,050,0002,277,376
6Mar 26, 2026 14:5614,01629,537,58410,279,0002,055,0002,277,376