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 listMar 18, 2026 15:06limanjun99limanjun99Score: 50,881Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 15:0650,83266,719,40343,716,0001,016,0002,445,312
2Mar 18, 2026 15:0650,83472,445,26743,718,0001,016,0002,506,752
3Mar 18, 2026 15:0650,86372,936,62243,742,0001,017,0002,330,624
4Mar 18, 2026 15:0650,88169,313,08542,740,0002,035,0002,371,584
5Mar 18, 2026 15:0650,88173,546,86344,775,00002,375,680
6Mar 18, 2026 15:0651,01873,095,69343,899,000997,0002,338,816
7Mar 18, 2026 15:0651,03175,044,98543,910,000997,0002,371,584
8Mar 18, 2026 15:0651,07670,375,90742,950,0001,997,0002,387,968
9Mar 18, 2026 15:0651,09871,947,36842,968,0001,998,0002,392,064