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 listApr 20, 2026 15:17BenBenScore: 132,422Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 15:23131,946138,704,352113,111,0003,002,0002,289,664
2Apr 20, 2026 15:23132,045139,708,913113,195,0003,005,0002,281,472
3Apr 20, 2026 15:23132,267134,734,927114,389,0002,006,0002,277,376
4Apr 20, 2026 15:23132,379135,741,613114,486,0002,008,0002,293,760
5Apr 20, 2026 15:23132,422138,183,424114,523,0002,009,0002,256,896
6Apr 20, 2026 15:23132,748146,514,895114,823,0001,996,0002,285,568
7Apr 20, 2026 15:23132,757144,364,256113,832,0002,995,0002,285,568
8Apr 20, 2026 15:23132,767143,683,838113,840,0002,995,0002,297,856
9Apr 20, 2026 15:23133,471129,684,129115,448,0002,007,0002,273,280