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 06:09apuxbtapuxbtScore: 35,548Success
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:0935,47262,417,84229,202,0002,013,0002,265,088
2Nov 29, 2022 06:0935,48155,263,22228,202,0003,021,0002,265,088
3Nov 29, 2022 06:0935,50656,630,05129,230,0002,015,0002,318,336
4Nov 29, 2022 06:0935,51660,075,50928,230,0003,024,0002,314,240
5Nov 29, 2022 06:0935,52061,474,89628,233,0003,025,0002,265,088
6Nov 29, 2022 06:0935,52255,441,02328,234,0003,025,0002,326,528
7Nov 29, 2022 06:0935,54855,741,42527,246,0004,036,0002,265,088
8Nov 29, 2022 06:0935,55168,505,44829,267,0002,018,0002,314,240
9Nov 29, 2022 06:0935,56361,004,48328,267,0003,028,0002,265,088
10Nov 29, 2022 06:0936,48291,511,80732,104,55202,293,760
11Nov 29, 2022 06:0936,61393,703,12232,219,69402,301,952
12Nov 29, 2022 06:0936,71197,889,41632,305,78002,306,048