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 28, 2026 19:39zielajzielajScore: 3,315Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 28, 2026 19:403,11916,895,2012,745,00002,277,376
2Feb 28, 2026 19:403,12318,194,7692,748,00002,420,736
3Feb 28, 2026 19:403,14214,732,5492,765,00002,424,832
4Feb 28, 2026 19:403,15520,594,8722,776,00002,433,024
5Feb 28, 2026 19:393,16924,604,4162,789,00002,428,928
6Feb 28, 2026 19:393,24017,658,102950,0001,901,0002,420,736
7Feb 28, 2026 19:393,31520,925,6011,945,000972,0002,535,424
8Feb 28, 2026 19:393,32216,442,2731,949,000974,0002,420,736
9Feb 28, 2026 19:393,32716,625,7061,952,000976,0002,424,832
10Feb 28, 2026 19:393,34918,252,7341,965,000982,0002,424,832
11Feb 28, 2026 19:403,61522,923,3212,121,0001,060,0002,535,424
12Feb 28, 2026 19:403,69318,794,3062,167,0001,083,0002,420,736