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,584Success
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,62769,774,67044,423,0001,009,0002,289,664
2Jul 13, 2023 20:5851,66071,890,58145,461,00002,289,664
3Jul 13, 2023 20:5851,70071,028,01845,496,00002,289,664
4Jul 13, 2023 20:5851,78266,327,78944,556,0001,012,0002,289,664
5Jul 13, 2023 20:5852,35368,300,51944,068,0002,003,0002,461,696
6Jul 13, 2023 20:5852,49370,424,80444,186,0002,008,0002,289,664
7Jul 13, 2023 20:5852,58473,041,79444,263,0002,011,0002,289,664
8Jul 13, 2023 20:5852,76068,770,79545,420,0001,009,0002,289,664
9Jul 13, 2023 20:5852,78972,963,03745,445,0001,009,0002,465,792
10Jul 13, 2023 20:5854,465110,043,64247,929,61302,187,264
11Jul 13, 2023 20:5854,845108,377,34948,263,37802,179,072
12Jul 13, 2023 20:5854,882112,402,09448,296,09602,191,360