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 listApr 28, 2026 09:45TudyMTudyMScore: 68,627Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 09:4568,37374,829,93159,167,0001,002,0002,367,488
2Apr 28, 2026 09:4568,46372,787,23159,244,0001,004,0002,371,584
3Apr 28, 2026 09:4568,46577,312,87059,246,0001,004,0002,367,488
4Apr 28, 2026 09:4568,60978,460,24159,370,0001,006,0002,371,584
5Apr 28, 2026 09:4568,62775,758,54759,386,0001,006,0002,363,392
6Apr 28, 2026 09:4568,63776,155,63859,395,0001,006,0002,367,488
7Apr 28, 2026 09:4568,67379,503,96459,426,0001,007,0002,375,680
8Apr 28, 2026 09:4568,69875,192,89759,448,0001,007,0002,371,584
9Apr 28, 2026 09:4568,83881,728,10559,569,0001,009,0002,306,048