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 18:45Victor MerckléVictor MerckléScore: 124,451Success
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 18:43123,749136,619,796105,902,0002,997,0002,301,952
2Apr 18, 2026 18:43123,855136,516,113105,993,0002,999,0002,301,952
3Apr 18, 2026 18:43123,953138,834,984106,077,0003,002,0002,297,856
4Apr 18, 2026 18:40124,042144,102,883107,155,0002,002,0002,310,144
5Apr 18, 2026 18:43124,159137,962,125106,253,0003,007,0002,310,144
6Apr 18, 2026 18:43124,176134,681,225106,268,0003,007,0002,310,144
7Apr 18, 2026 18:40124,239140,167,793107,324,0002,006,0002,310,144
8Apr 18, 2026 18:43124,264132,338,862107,346,0002,006,0002,310,144
9Apr 18, 2026 18:45124,268140,259,650106,347,0003,009,0002,310,144
10Apr 18, 2026 18:42124,291131,338,574107,370,0002,006,0002,297,856
11Apr 18, 2026 18:43124,299134,533,930106,373,0003,010,0002,306,048
12Apr 18, 2026 18:42124,315133,190,395107,390,0002,007,0002,306,048
13Apr 18, 2026 18:42124,324135,581,347108,402,0001,003,0002,306,048
14Apr 18, 2026 18:40124,352134,172,249107,423,0002,007,0002,301,952
15Apr 18, 2026 18:42124,364134,180,378107,432,0002,008,0002,281,472
16Apr 18, 2026 18:42124,451136,262,257107,508,0002,009,0002,306,048
17Apr 18, 2026 18:40124,466131,516,773107,521,0002,009,0002,281,472
18Apr 18, 2026 18:42124,497130,748,244108,552,0001,005,0002,428,928
19Apr 18, 2026 18:40124,497134,063,094108,552,0001,005,0002,310,144
20Apr 18, 2026 18:42124,502135,144,895107,552,0002,010,0002,310,144
21Apr 18, 2026 18:40124,532132,191,096107,578,0002,010,0002,314,240
22Apr 18, 2026 18:40124,536136,753,399107,582,0002,010,0002,314,240
23Apr 18, 2026 18:43124,610140,362,775108,651,0001,006,0002,281,472
24Apr 18, 2026 18:45124,657142,945,580107,686,0002,012,0002,318,336
25Apr 18, 2026 18:40124,665136,975,898108,699,0001,006,0002,281,472
26Apr 18, 2026 18:40124,845136,719,613107,867,0001,997,0002,281,472
27Apr 18, 2026 18:43124,880137,370,735107,878,0002,016,0002,281,472
28Apr 18, 2026 18:42125,108134,328,723107,093,0003,002,0002,306,048
29Apr 18, 2026 18:42125,363138,956,509107,311,0003,008,0002,306,048
30Apr 18, 2026 18:45125,373134,836,547106,317,0004,011,0002,519,040