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 listJun 27, 2021 16:00Yuriy LyfenkoYuriy LyfenkoScore: 37,543Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 16:0035,49591,221,82531,235,79502,220,032
2Jun 27, 2021 16:0035,60090,370,56931,328,30602,215,936
3Jun 27, 2021 16:0035,66387,787,86331,383,37602,207,744
4Jun 27, 2021 16:0037,43860,470,27830,949,0001,996,0002,269,184
5Jun 27, 2021 16:0037,49064,192,29731,992,000999,0002,371,584
6Jun 27, 2021 16:0037,50262,620,36531,002,0002,000,0002,269,184
7Jun 27, 2021 16:0037,54358,042,41831,036,0002,002,0002,265,088
8Jun 27, 2021 16:0037,58357,243,44332,071,0001,002,0002,269,184
9Jun 27, 2021 16:0037,64565,645,31631,121,0002,007,0002,383,872
10Jun 27, 2021 16:0037,66064,233,73531,133,0002,008,0002,375,680
11Jun 27, 2021 16:0037,67259,180,78631,142,0002,009,0002,383,872
12Jun 27, 2021 16:0037,78863,384,72832,246,0001,007,0002,379,776