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 18, 2026 19:01Victor MerckléVictor MerckléScore: 122,892Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 19:30122,681131,400,457106,960,000999,0002,269,184
2Apr 18, 2026 19:30122,713130,471,952105,988,0001,999,0002,396,160
3Apr 18, 2026 19:30122,716136,551,529105,991,0001,999,0002,392,064
4Apr 18, 2026 19:00122,723135,435,094106,997,000999,0002,400,256
5Apr 18, 2026 19:00122,733134,531,906107,005,0001,000,0002,392,064
6Apr 18, 2026 19:00122,747130,717,074107,017,0001,000,0002,400,256
7Apr 18, 2026 19:30122,769136,117,739106,037,0002,000,0002,404,352
8Apr 18, 2026 19:30122,802130,334,742107,066,0001,000,0002,273,280
9Apr 18, 2026 19:00122,807130,680,850107,070,0001,000,0002,506,752
10Apr 18, 2026 19:00122,839135,776,515106,097,0002,001,0002,400,256
11Apr 18, 2026 19:30122,892134,191,822106,143,0002,002,0002,400,256
12Apr 18, 2026 19:00122,952131,897,884108,198,00002,273,280
13Apr 18, 2026 19:30122,959134,254,942107,203,0001,001,0002,396,160
14Apr 18, 2026 19:00122,977136,780,274108,220,00002,400,256
15Apr 18, 2026 19:01123,051132,623,153107,283,0001,002,0002,396,160
16Apr 18, 2026 19:30123,060130,821,942107,291,0001,002,0002,269,184
17Apr 18, 2026 19:00123,076135,170,280108,307,00002,400,256
18Apr 18, 2026 19:30123,130134,765,199107,351,0001,003,0002,400,256
19Apr 18, 2026 19:01123,172140,343,706107,388,0001,003,0002,273,280
20Apr 18, 2026 19:01123,213134,801,259107,424,0001,003,0002,273,280
21Apr 18, 2026 19:00123,264133,243,808108,472,00002,273,280