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:10Robert BurkeRobert BurkeScore: 37,110Success
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:1036,42595,376,60532,054,41802,260,992
2Jul 31, 2022 15:1036,50192,739,79232,120,62402,260,992
3Jul 31, 2022 15:1036,50391,401,32632,122,77302,273,280
4Jul 31, 2022 15:1036,99553,012,45931,539,0001,017,0002,273,280
5Jul 31, 2022 15:1037,08256,031,08932,632,00002,301,952
6Jul 31, 2022 15:1037,08852,563,77731,618,0001,019,0002,535,424
7Jul 31, 2022 15:1037,11055,644,14732,657,00002,293,760
8Jul 31, 2022 15:1037,11058,504,43931,637,0001,020,0002,273,280
9Jul 31, 2022 15:1037,16557,770,44730,661,0002,044,0002,273,280
10Jul 31, 2022 15:1037,53155,892,78830,025,0003,002,0002,293,760
11Jul 31, 2022 15:1037,63054,668,02630,104,0003,010,0002,289,664
12Jul 31, 2022 15:1037,90553,642,86233,356,00002,273,280