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 listJul 31, 2022 15:37Robert BurkeRobert BurkeScore: 35,871Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 15:3735,34553,930,21528,094,0003,010,0002,535,424
2Jul 31, 2022 15:3735,40356,684,34428,140,0003,015,0002,445,312
3Jul 31, 2022 15:3735,57663,611,01028,278,0003,029,0002,441,216
4Jul 31, 2022 15:3735,62257,568,21230,336,0001,011,0002,273,280
5Jul 31, 2022 15:3735,67751,201,10231,396,00002,437,120
6Jul 31, 2022 15:3735,76051,588,15531,469,00002,273,280
7Jul 31, 2022 15:3735,87191,899,48831,566,21802,289,664
8Jul 31, 2022 15:3735,88453,489,28630,560,0001,018,0002,437,120
9Jul 31, 2022 15:3735,94154,842,47330,608,0001,020,0002,273,280
10Jul 31, 2022 15:3736,08289,344,24531,752,10902,285,568
11Jul 31, 2022 15:3736,30598,089,75831,948,31902,285,568
12Jul 31, 2022 15:3736,35057,456,21129,989,0001,999,0002,433,024