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 listJul 13, 2023 18:45gchebanovgchebanovScore: 59,784Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2023 18:4554,478121,427,64347,940,49402,293,760
2Jul 13, 2023 18:4554,539112,289,95547,994,54802,306,048
3Jul 13, 2023 18:4554,609112,123,47448,056,25902,297,856
4Jul 13, 2023 18:4559,39575,927,94050,258,0002,010,0002,457,600
5Jul 13, 2023 18:4559,69077,616,40651,517,0001,010,0002,453,504
6Jul 13, 2023 18:4559,75273,675,15151,571,0001,011,0002,457,600
7Jul 13, 2023 18:4559,78476,066,70651,599,0001,011,0002,457,600
8Jul 13, 2023 18:4559,81573,472,85252,637,00002,465,792
9Jul 13, 2023 18:4559,82480,796,34751,633,0001,012,0002,461,696
10Jul 13, 2023 18:4559,89382,462,41851,693,0001,013,0002,293,760
11Jul 13, 2023 18:4561,01982,178,99852,684,0001,013,0002,293,760
12Jul 13, 2023 18:4561,17780,065,83652,840,000996,0002,457,600