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:50Yuriy LyfenkoYuriy LyfenkoScore: 28,352Success
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:5128,10848,248,61423,705,0001,030,0002,527,232
2Dec 29, 2022 02:5028,12853,870,94223,722,0001,031,0002,396,160
3Dec 29, 2022 02:5128,27349,085,31323,885,000995,0002,392,064
4Dec 29, 2022 02:5128,28250,966,51422,897,0001,991,0002,265,088
5Dec 29, 2022 02:5128,28551,943,51322,900,0001,991,0002,387,968
6Dec 29, 2022 02:5128,29353,184,17423,903,000995,0002,527,232
7Dec 29, 2022 02:5128,29758,044,83422,909,0001,992,0002,265,088
8Dec 29, 2022 02:5028,29952,631,65623,907,000996,0002,387,968
9Dec 29, 2022 02:5028,30548,610,51823,912,000996,0002,392,064
10Dec 29, 2022 02:5028,31054,085,18822,920,0001,993,0002,265,088
11Dec 29, 2022 02:5128,31056,534,73823,917,000996,0002,265,088
12Dec 29, 2022 02:5028,32252,627,91722,930,0001,993,0002,527,232
13Dec 29, 2022 02:5028,35255,426,54423,952,000998,0002,387,968
14Dec 29, 2022 02:5128,37751,564,29022,975,0001,997,0002,527,232
15Dec 29, 2022 02:5028,41054,949,69923,001,0002,000,0002,265,088
16Dec 29, 2022 02:5028,46752,116,73223,047,0002,004,0002,400,256
17Dec 29, 2022 02:5028,48655,999,27423,063,0002,005,0002,527,232
18Dec 29, 2022 02:5128,51649,442,55823,087,0002,007,0002,269,184
19Dec 29, 2022 02:5128,85396,763,28725,390,65402,228,224
20Dec 29, 2022 02:5128,85887,956,38825,395,01102,232,320
21Dec 29, 2022 02:5128,92589,620,88425,454,40002,232,320
22Dec 29, 2022 02:5028,93992,147,53225,466,59702,228,224
23Dec 29, 2022 02:5029,05664,265,26325,569,51802,224,128
24Dec 29, 2022 02:5029,12093,594,73525,625,57602,232,320