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 14, 2026 22:24olliecrowolliecrowScore: 18,697Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 22:2418,63029,885,09516,394,00002,478,080
2Feb 14, 2026 22:2418,66438,832,25216,424,00002,478,080
3Feb 14, 2026 22:2418,68136,456,84416,439,00002,482,176
4Feb 14, 2026 22:2418,68443,072,29916,442,00002,469,888
5Feb 14, 2026 22:2418,69730,612,95516,453,00002,473,984
6Feb 14, 2026 22:2418,70537,112,52416,460,00002,306,048
7Feb 14, 2026 22:2418,71838,951,61016,472,00002,473,984
8Feb 14, 2026 22:2418,81738,808,78416,559,00002,301,952
9Feb 14, 2026 22:2419,00742,115,15915,681,0001,045,0002,355,200