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 1, 2022 06:39apuxbtapuxbtScore: 30,342Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 06:3930,17749,369,88525,535,0001,021,0002,383,872
2Dec 1, 2022 06:3930,23947,006,03926,610,00002,383,872
3Dec 1, 2022 06:3930,25547,256,80626,624,00002,506,752
4Dec 1, 2022 06:3930,28552,564,83925,626,0001,025,0002,387,968
5Dec 1, 2022 06:3930,29847,601,07326,662,00002,265,088
6Dec 1, 2022 06:3930,33254,680,23825,666,0001,026,0002,396,160
7Dec 1, 2022 06:3930,34256,477,49726,701,00002,392,064
8Dec 1, 2022 06:3930,54052,552,43425,880,000995,0002,265,088
9Dec 1, 2022 06:3930,58857,980,54525,921,000996,0002,265,088
10Dec 1, 2022 06:3930,78285,206,84927,088,34102,236,416
11Dec 1, 2022 06:3930,88992,947,90527,182,55202,240,512
12Dec 1, 2022 06:3930,95689,387,56027,241,35202,228,224