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 listDec 28, 2022 02:46Robert BurkeRobert BurkeScore: 18,938Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 02:4618,85992,207,31116,596,24202,236,416
2Dec 28, 2022 02:4618,87644,646,05015,573,0001,038,0002,273,280
3Dec 28, 2022 02:4618,88785,918,53616,620,83202,236,416
4Dec 28, 2022 02:4618,88954,758,44816,622,73502,220,032
5Dec 28, 2022 02:4618,88928,638,70516,622,00002,396,160
6Dec 28, 2022 02:4618,92331,609,59715,612,0001,040,0002,396,160
7Dec 28, 2022 02:4618,93839,362,50816,665,00002,273,280
8Dec 28, 2022 02:4619,00847,445,58216,727,00002,396,160
9Dec 28, 2022 02:4619,03037,395,62615,700,0001,046,0002,273,280
10Dec 28, 2022 02:4619,03132,372,71516,747,00002,535,424
11Dec 28, 2022 02:4619,06942,345,16216,781,00002,273,280
12Dec 28, 2022 02:4619,09232,720,43414,825,0001,976,0002,396,160