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 listNov 29, 2022 05:33apuxbtapuxbtScore: 35,674Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2022 06:0435,44558,504,95928,174,0003,018,0002,318,336
2Nov 29, 2022 05:3335,46952,656,30328,193,0003,020,0002,273,280
3Nov 29, 2022 06:0435,47553,156,30029,204,0002,014,0002,314,240
4Nov 29, 2022 06:0435,50958,350,88429,232,0002,016,0002,273,280
5Nov 29, 2022 05:3335,54152,497,12629,259,0002,017,0002,310,144
6Nov 29, 2022 05:3335,55554,235,74628,261,0003,027,0002,322,432
7Nov 29, 2022 06:0435,57555,013,31128,277,0003,029,0002,273,280
8Nov 29, 2022 06:0435,58953,817,73728,288,0003,030,0002,273,280
9Nov 29, 2022 05:3335,60157,356,25128,298,0003,031,0002,314,240
10Nov 29, 2022 06:0435,60552,664,04928,300,0003,032,0002,306,048
11Nov 29, 2022 05:3335,60753,032,71128,302,0003,032,0002,273,280
12Nov 29, 2022 05:3335,66456,226,86428,347,0003,037,0002,273,280
13Nov 29, 2022 05:3335,67453,786,48428,355,0003,038,0002,273,280
14Nov 29, 2022 06:0435,70855,199,22629,396,0002,027,0002,310,144
15Nov 29, 2022 05:3335,74259,680,66429,424,0002,029,0002,314,240
16Nov 29, 2022 06:0435,79453,494,15028,451,0003,048,0002,273,280
17Nov 29, 2022 05:3335,80152,730,70129,473,0002,032,0002,273,280
18Nov 29, 2022 06:0435,85858,834,87529,520,0002,035,0002,392,064
19Nov 29, 2022 06:0436,53296,729,92732,147,91402,293,760
20Nov 29, 2022 05:3336,69498,426,49932,290,78602,260,992
21Nov 29, 2022 05:3336,71293,413,65032,306,36402,174,976
22Nov 29, 2022 05:3336,74093,972,73532,331,04402,297,856
23Nov 29, 2022 06:0436,74288,386,48232,333,23402,289,664
24Nov 29, 2022 06:0436,80094,220,67932,384,03802,289,664