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 15, 2026 20:41zielajzielajScore: 3,332Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2026 20:423,29918,505,8602,903,00002,428,928
2Feb 15, 2026 20:423,31116,307,4131,943,000971,0002,416,640
3Feb 15, 2026 20:403,31723,681,6001,946,000973,0002,412,544
4Feb 15, 2026 20:403,31819,007,8132,920,00002,420,736
5Feb 15, 2026 20:423,32019,701,5321,948,000974,0002,416,640
6Feb 15, 2026 20:443,32420,189,7122,925,00002,510,848
7Feb 15, 2026 20:403,32419,647,9991,950,000975,0002,428,928
8Feb 15, 2026 20:443,32516,486,8571,951,000975,0002,510,848
9Feb 15, 2026 20:423,32517,595,7521,951,000975,0002,428,928
10Feb 15, 2026 20:423,32717,425,6441,952,000976,0002,277,376
11Feb 15, 2026 20:423,33116,186,1471,954,000977,0002,277,376
12Feb 15, 2026 20:423,33117,942,5751,954,000977,0002,420,736
13Feb 15, 2026 20:403,33116,066,6801,954,000977,0002,412,544
14Feb 15, 2026 20:403,33221,599,9522,932,00002,510,848
15Feb 15, 2026 20:443,33617,480,5092,936,00002,420,736
16Feb 15, 2026 20:403,33822,124,0291,958,000979,0002,424,832
17Feb 15, 2026 20:403,34119,089,7841,960,000980,0002,531,328
18Feb 15, 2026 20:413,34420,905,2512,943,00002,420,736
19Feb 15, 2026 20:443,34416,989,6941,962,000981,0002,424,832
20Feb 15, 2026 20:443,34915,778,7011,965,000982,0002,510,848
21Feb 15, 2026 20:443,35121,673,7782,949,00002,420,736
22Feb 15, 2026 20:413,35819,816,4351,970,000985,0002,277,376
23Feb 15, 2026 20:403,41019,905,0362,001,0001,000,0002,416,640
24Feb 15, 2026 20:423,43424,296,5002,015,0001,007,0002,420,736
25Feb 15, 2026 20:403,45018,696,9722,024,0001,012,0002,424,832
26Feb 15, 2026 20:413,49223,435,5001,024,0002,049,0002,424,832
27Feb 15, 2026 20:424,16621,652,6493,666,00002,277,376