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 3, 2023 01:24apuxbtapuxbtScore: 29,760Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2023 01:2429,118102,829,88525,623,80002,207,744
2Oct 3, 2023 01:2629,141122,822,90825,644,46302,211,840
3Oct 3, 2023 01:2629,25880,107,12725,747,39102,203,648
4Oct 3, 2023 01:2429,30789,033,03325,790,45102,211,840
5Oct 3, 2023 01:2429,30889,342,82125,791,27802,215,936
6Oct 3, 2023 01:2629,36279,950,85425,838,12602,203,648
7Oct 3, 2023 01:2629,65750,813,52324,091,0002,007,0002,293,760
8Oct 3, 2023 01:2429,69049,510,13325,123,0001,004,0002,494,464
9Oct 3, 2023 01:2429,71349,199,66824,136,0002,011,0002,486,272
10Oct 3, 2023 01:2629,71551,806,53424,138,0002,011,0002,330,624
11Oct 3, 2023 01:2629,71850,037,34724,141,0002,011,0002,293,760
12Oct 3, 2023 01:2629,72856,042,88425,155,0001,006,0002,293,760
13Oct 3, 2023 01:2629,76050,248,66724,175,0002,014,0002,490,368
14Oct 3, 2023 01:2429,78354,306,11924,193,0002,016,0002,293,760
15Oct 3, 2023 01:2429,78949,193,16724,198,0002,016,0002,490,368
16Oct 3, 2023 01:2629,79853,236,05525,214,0001,008,0002,490,368
17Oct 3, 2023 01:2429,80357,657,01424,210,0002,017,0002,293,760
18Oct 3, 2023 01:2429,82250,862,54924,225,0002,018,0002,482,176
19Oct 3, 2023 01:2429,84950,022,76324,247,0002,020,0002,293,760
20Oct 3, 2023 01:2429,85148,270,03024,249,0002,020,0002,293,760
21Oct 3, 2023 01:2429,87448,744,58224,267,0002,022,0002,293,760
22Oct 3, 2023 01:2629,91754,303,41624,302,0002,025,0002,293,760
23Oct 3, 2023 01:2629,92255,427,02024,306,0002,025,0002,293,760
24Oct 3, 2023 01:2629,97559,229,41225,364,0001,014,0002,293,760