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 23:01olliecrowolliecrowScore: 18,491Success
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 23:0118,36631,991,33115,152,0001,010,0002,482,176
2Feb 14, 2026 23:0118,45333,533,55916,239,00002,420,736
3Feb 14, 2026 23:0118,46638,897,11716,250,00002,420,736
4Feb 14, 2026 23:0118,48831,772,45614,236,0002,033,0002,473,984
5Feb 14, 2026 23:0118,49136,716,68915,255,0001,017,0002,478,080
6Feb 14, 2026 23:0118,55638,091,88416,329,00002,469,888
7Feb 14, 2026 23:0118,57742,508,43615,327,0001,021,0002,486,272
8Feb 14, 2026 23:0118,65834,362,04015,393,0001,026,0002,461,696
9Feb 14, 2026 23:0118,68634,423,21715,417,0001,027,0002,473,984