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 listJun 27, 2021 04:41Yuriy LyfenkoYuriy LyfenkoScore: 36,555Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 04:4134,63198,688,66030,474,98402,220,032
2Jun 27, 2021 04:4334,65389,611,12530,494,93802,220,032
3Jun 27, 2021 04:4134,67083,353,63430,509,85502,211,840
4Jun 27, 2021 04:4134,71784,939,19230,550,64402,220,032
5Jun 27, 2021 04:4334,815108,034,39430,637,27502,215,936
6Jun 27, 2021 04:4334,864110,265,51530,680,55102,211,840
7Jun 27, 2021 04:4136,50159,509,87031,085,0001,036,0002,269,184
8Jun 27, 2021 04:4136,52262,304,54631,135,0001,004,0002,269,184
9Jun 27, 2021 04:4136,53060,816,56230,137,0002,009,0002,269,184
10Jun 27, 2021 04:4336,54257,151,04431,153,0001,004,0002,269,184
11Jun 27, 2021 04:4336,54559,537,16031,155,0001,005,0002,375,680
12Jun 27, 2021 04:4136,55260,099,88531,161,0001,005,0002,269,184
13Jun 27, 2021 04:4336,55557,106,55130,158,0002,010,0002,375,680
14Jun 27, 2021 04:4336,59462,703,34630,191,0002,012,0002,285,568
15Jun 27, 2021 04:4336,62657,514,18232,231,00002,379,776
16Jun 27, 2021 04:4336,62757,793,07931,225,0001,007,0002,265,088
17Jun 27, 2021 04:4336,63857,707,97930,226,0002,015,0002,269,184
18Jun 27, 2021 04:4136,64257,950,98731,238,0001,007,0002,269,184
19Jun 27, 2021 04:4136,64860,642,28031,243,0001,007,0002,269,184
20Jun 27, 2021 04:4336,68960,694,60632,286,00002,379,776
21Jun 27, 2021 04:4136,70159,667,23631,288,0001,009,0002,379,776
22Jun 27, 2021 04:4336,70658,294,41831,292,0001,009,0002,379,776
23Jun 27, 2021 04:4136,74455,705,07331,325,0001,010,0002,473,984
24Jun 27, 2021 04:4136,83859,002,89631,404,0001,013,0002,269,184