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 listOct 6, 2023 07:49matsuoka-601matsuoka-601Score: 21,916Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 07:4921,48482,581,22018,906,06502,187,264
2Oct 6, 2023 07:4921,56578,849,41818,977,06202,306,048
3Oct 6, 2023 07:4921,66194,243,65819,061,43002,179,072
4Oct 6, 2023 07:4921,85740,358,10715,185,0004,049,0002,289,664
5Oct 6, 2023 07:4921,88842,858,50015,206,0004,055,0002,293,760
6Oct 6, 2023 07:4921,88941,382,09216,221,0003,041,0002,289,664
7Oct 6, 2023 07:4921,91646,333,29216,241,0003,045,0002,301,952
8Oct 6, 2023 07:4921,91838,868,91715,228,0004,060,0002,289,664
9Oct 6, 2023 07:4921,93655,488,92016,256,0003,048,0002,289,664
10Oct 6, 2023 07:4922,00953,391,04615,291,0004,077,0002,289,664
11Oct 6, 2023 07:4922,00942,098,49615,291,0004,077,0002,289,664
12Oct 6, 2023 07:4922,20336,726,27115,426,0004,113,0002,457,600