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 4, 2023 12:28Robert BurkeRobert BurkeScore: 21,740Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2023 12:2818,12778,512,54815,951,48902,240,512
2Oct 4, 2023 12:2818,19984,884,59316,015,55902,228,224
3Oct 4, 2023 12:2818,234108,465,44616,045,60002,228,224
4Oct 4, 2023 12:2821,55742,290,30117,972,000998,0002,400,256
5Oct 4, 2023 12:2821,65236,336,94418,052,0001,002,0002,273,280
6Oct 4, 2023 12:2821,70840,932,07818,098,0001,005,0002,273,280
7Oct 4, 2023 12:2821,74044,976,34018,125,0001,006,0002,392,064
8Oct 4, 2023 12:2821,74236,936,19317,119,0002,014,0002,490,368
9Oct 4, 2023 12:2821,74744,391,89417,123,0002,014,0002,273,280
10Oct 4, 2023 12:2821,76941,891,63517,141,0002,016,0002,396,160
11Oct 4, 2023 12:2821,77334,624,87318,152,0001,008,0002,396,160
12Oct 4, 2023 12:2821,78340,207,25917,152,0002,017,0002,273,280