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 listFeb 23, 2024 04:12Yuriy LyfenkoYuriy LyfenkoScore: 28,051Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 23, 2024 04:1227,93447,927,16223,558,0001,024,0002,396,160
2Feb 23, 2024 04:1227,96446,873,62123,583,0001,025,0002,527,232
3Feb 23, 2024 04:1227,97346,245,12623,591,0001,025,0002,527,232
4Feb 23, 2024 04:1227,99448,296,15224,635,00002,527,232
5Feb 23, 2024 04:1227,99747,283,09124,637,00002,392,064
6Feb 23, 2024 04:1228,00353,683,19524,643,00002,387,968
7Feb 23, 2024 04:1228,05155,479,27323,657,0001,028,0002,383,872
8Feb 23, 2024 04:1228,07750,760,04923,679,0001,029,0002,527,232
9Feb 23, 2024 04:1228,08356,564,88724,713,00002,265,088
10Feb 23, 2024 04:1229,01996,388,30825,536,50902,240,512
11Feb 23, 2024 04:1229,10294,481,29525,609,66702,228,224
12Feb 23, 2024 04:1229,213101,919,60625,707,60102,236,416