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 23, 2023 20:37Kenneth MaplesKenneth MaplesScore: 23,750Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2023 20:3823,57546,487,46719,709,0001,037,0002,387,968
2Dec 23, 2023 20:3823,57847,943,98019,712,0001,037,0002,265,088
3Dec 23, 2023 20:3723,61447,474,00519,741,0001,039,0002,265,088
4Dec 23, 2023 20:3823,62444,870,18719,750,0001,039,0002,383,872
5Dec 23, 2023 20:3823,62446,908,82919,750,0001,039,0002,387,968
6Dec 23, 2023 20:3723,63134,126,52319,756,0001,039,0002,265,088
7Dec 23, 2023 20:3723,70947,315,54019,871,000993,0002,383,872
8Dec 23, 2023 20:3723,73291,425,63620,884,17502,240,512
9Dec 23, 2023 20:3823,73446,681,17419,892,000994,0002,506,752
10Dec 23, 2023 20:3723,74246,724,66219,899,000994,0002,265,088
11Dec 23, 2023 20:3723,74251,762,44818,904,0001,989,0002,265,088
12Dec 23, 2023 20:3723,74848,306,90618,908,0001,990,0002,265,088
13Dec 23, 2023 20:3723,75052,200,94418,910,0001,990,0002,265,088
14Dec 23, 2023 20:3723,75249,424,98820,902,00002,265,088
15Dec 23, 2023 20:3823,77446,885,31419,925,000996,0002,265,088
16Dec 23, 2023 20:3823,78450,981,00818,937,0001,993,0002,265,088
17Dec 23, 2023 20:3723,79148,749,59119,890,0001,046,0002,387,968
18Dec 23, 2023 20:3823,79745,570,67418,947,0001,994,0002,392,064
19Dec 23, 2023 20:3823,80946,116,42918,957,0001,995,0002,265,088
20Dec 23, 2023 20:3723,87180,894,58221,006,73902,240,512
21Dec 23, 2023 20:3823,93880,157,24721,065,26102,240,512
22Dec 23, 2023 20:3824,01586,264,06521,133,51402,240,512
23Dec 23, 2023 20:3824,016102,118,72921,133,93802,244,608
24Dec 23, 2023 20:3724,044104,904,39921,158,52902,232,320