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 listFeb 20, 2026 01:46zielajzielajScore: 3,659Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2026 01:443,57419,956,2702,097,0001,048,0002,539,520
2Feb 20, 2026 01:443,63523,798,4192,133,0001,066,0002,375,680
3Feb 20, 2026 01:463,65220,291,3562,143,0001,071,0002,375,680
4Feb 20, 2026 01:463,65524,375,4902,144,0001,072,0002,379,776
5Feb 20, 2026 01:463,65918,285,2072,147,0001,073,0002,375,680
6Feb 20, 2026 01:463,66116,996,6782,148,0001,074,0002,371,584
7Feb 20, 2026 01:463,67324,739,5451,077,0002,155,0002,277,376
8Feb 20, 2026 01:443,71718,956,8871,090,0002,181,0002,539,520
9Feb 20, 2026 01:464,28920,583,8412,516,0001,258,0002,371,584