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 09:28Robert BurkeRobert BurkeScore: 20,519Success
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 09:2817,99780,702,17715,837,51302,273,280
2Oct 6, 2023 09:2818,01061,290,52815,848,66702,260,992
3Oct 6, 2023 09:2818,10259,742,94015,929,34202,265,088
4Oct 6, 2023 09:2820,42842,639,90515,980,0001,997,0002,420,736
5Oct 6, 2023 09:2820,43046,046,53215,981,0001,997,0002,281,472
6Oct 6, 2023 09:2820,49034,992,53516,028,0002,003,0002,420,736
7Oct 6, 2023 09:2820,51939,811,78116,051,0002,006,0002,281,472
8Oct 6, 2023 09:2820,52336,480,49216,054,0002,006,0002,416,640
9Oct 6, 2023 09:2820,52438,131,88616,055,0002,006,0002,281,472
10Oct 6, 2023 09:2820,56938,805,23416,090,0002,011,0002,281,472
11Oct 6, 2023 09:2820,58436,135,50916,102,0002,012,0002,281,472
12Oct 6, 2023 09:2820,63639,314,37516,143,0002,017,0002,408,448