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 29, 2022 02:45Yuriy LyfenkoYuriy LyfenkoScore: 28,630Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2022 02:4628,45955,047,24923,041,0002,003,0002,265,088
2Dec 29, 2022 02:4628,46448,673,26524,047,0001,001,0002,527,232
3Dec 29, 2022 02:4628,48157,166,48823,058,0002,005,0002,265,088
4Dec 29, 2022 02:4528,50349,215,18623,077,0002,006,0002,387,968
5Dec 29, 2022 02:4528,56153,101,52124,129,0001,005,0002,265,088
6Dec 29, 2022 02:4628,58250,541,71224,146,0001,006,0002,392,064
7Dec 29, 2022 02:4528,59055,196,28323,147,0002,012,0002,265,088
8Dec 29, 2022 02:4628,59049,224,03924,153,0001,006,0002,400,256
9Dec 29, 2022 02:4528,59351,212,42624,156,0001,006,0002,265,088
10Dec 29, 2022 02:4528,60054,766,91423,155,0002,013,0002,265,088
11Dec 29, 2022 02:4628,61551,890,93623,167,0002,014,0002,527,232
12Dec 29, 2022 02:4628,61954,593,04024,178,0001,007,0002,396,160
13Dec 29, 2022 02:4628,62549,654,67723,175,0002,015,0002,527,232
14Dec 29, 2022 02:4528,63052,082,50924,187,0001,007,0002,392,064
15Dec 29, 2022 02:4528,64355,065,70724,198,0001,008,0002,379,776
16Dec 29, 2022 02:4628,87347,958,44425,408,00002,527,232
17Dec 29, 2022 02:4528,87851,641,81225,413,00002,265,088
18Dec 29, 2022 02:4528,94149,770,32625,468,00002,383,872
19Dec 29, 2022 02:4629,05893,412,70125,571,43702,232,320
20Dec 29, 2022 02:4529,084102,877,20725,594,13702,232,320
21Dec 29, 2022 02:4529,16884,267,40625,667,68302,232,320
22Dec 29, 2022 02:4629,18293,617,83125,680,00202,240,512
23Dec 29, 2022 02:4529,18489,695,05025,681,49702,232,320
24Dec 29, 2022 02:4529,256116,644,24725,744,86402,228,224
25Dec 29, 2022 02:4529,31091,807,21325,793,06602,232,320
26Dec 29, 2022 02:4529,36595,156,76525,841,19002,232,320
27Dec 29, 2022 02:4629,39987,406,18925,871,17602,236,416