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 20:58gchebanovgchebanovScore: 52,781Success
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 20:5851,34365,845,61043,174,0002,008,0002,289,664
2Jul 13, 2023 20:5851,36867,501,11043,195,0002,009,0002,457,600
3Jul 13, 2023 20:5851,40169,490,83343,223,0002,010,0002,461,696
4Jul 13, 2023 20:5851,70675,140,63344,490,0001,011,0002,453,504
5Jul 13, 2023 20:5851,71865,784,81344,501,0001,011,0002,289,664
6Jul 13, 2023 20:5852,61967,472,63045,299,0001,006,0002,465,792
7Jul 13, 2023 20:5852,78173,226,00545,438,0001,009,0002,289,664
8Jul 13, 2023 20:5852,85071,106,86045,497,0001,011,0002,461,696
9Jul 13, 2023 20:5852,98370,645,60445,612,0001,013,0002,465,792
10Jul 13, 2023 20:5853,819110,582,30347,360,39902,301,952
11Jul 13, 2023 20:5853,833108,393,21947,373,19502,183,168
12Jul 13, 2023 20:5854,671120,228,94548,110,15302,301,952