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 3, 2023 00:58apuxbtapuxbtScore: 30,226Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2023 00:5829,58989,205,37526,038,62302,199,552
2Oct 3, 2023 00:5829,59896,417,88326,045,95202,207,744
3Oct 3, 2023 00:5829,67992,882,00126,117,12902,207,744
4Oct 3, 2023 00:5830,04148,420,48126,436,00002,293,760
5Oct 3, 2023 00:5830,06857,099,86325,443,0001,017,0002,293,760
6Oct 3, 2023 00:5830,18946,273,29325,545,0001,021,0002,490,368
7Oct 3, 2023 00:5830,22653,691,82425,576,0001,023,0002,486,272
8Oct 3, 2023 00:5830,24347,840,28425,591,0001,023,0002,490,368
9Oct 3, 2023 00:5830,26753,740,26426,635,00002,293,760
10Oct 3, 2023 00:5830,29856,686,58525,637,0001,025,0002,293,760
11Oct 3, 2023 00:5830,32056,664,26525,656,0001,026,0002,293,760
12Oct 3, 2023 00:5830,40556,245,84025,727,0001,029,0002,293,760