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 13, 2026 15:38Dominique GarmierDominique GarmierScore: 63,553Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 13, 2026 15:3863,25375,034,13255,663,00002,293,760
2Mar 13, 2026 15:3863,49083,066,12054,874,000997,0002,289,664
3Mar 13, 2026 15:3863,49982,096,86353,884,0001,995,0002,289,664
4Mar 13, 2026 15:3863,52784,073,97653,908,0001,996,0002,281,472
5Mar 13, 2026 15:3863,55385,017,76754,929,000998,0002,289,664
6Mar 13, 2026 15:3863,56075,703,28454,935,000998,0002,289,664
7Mar 13, 2026 15:3863,56179,459,46153,937,0001,997,0002,281,472
8Mar 13, 2026 15:3863,73682,965,27255,087,0001,001,0002,293,760
9Mar 13, 2026 15:3863,90283,378,51555,230,0001,004,0002,289,664