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:32Yuriy LyfenkoYuriy LyfenkoScore: 28,859Success
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:3128,47851,475,18524,059,0001,002,0002,396,160
2Dec 29, 2022 02:3128,51150,121,43124,087,0001,003,0002,265,088
3Dec 29, 2022 02:3128,55151,264,33524,120,0001,005,0002,265,088
4Dec 29, 2022 02:3228,57651,288,85224,142,0001,005,0002,387,968
5Dec 29, 2022 02:3228,58353,919,91323,141,0002,012,0002,527,232
6Dec 29, 2022 02:3228,60556,822,00424,166,0001,006,0002,265,088
7Dec 29, 2022 02:3128,62352,578,56124,181,0001,007,0002,527,232
8Dec 29, 2022 02:3128,66656,590,23323,208,0002,018,0002,265,088
9Dec 29, 2022 02:3228,71651,195,48124,260,0001,010,0002,265,088
10Dec 29, 2022 02:3228,76447,865,00125,312,00002,269,184
11Dec 29, 2022 02:3128,76543,803,91824,301,0001,012,0002,265,088
12Dec 29, 2022 02:3128,81552,791,58625,357,00002,265,088
13Dec 29, 2022 02:3128,85949,867,69924,381,0001,015,0002,383,872
14Dec 29, 2022 02:3228,86948,487,86025,405,00002,265,088
15Dec 29, 2022 02:3228,87351,880,36724,392,0001,016,0002,506,752
16Dec 29, 2022 02:3228,88049,438,25825,414,00002,506,752
17Dec 29, 2022 02:3128,93450,519,18625,462,00002,523,136
18Dec 29, 2022 02:3228,93947,227,27125,466,00002,265,088
19Dec 29, 2022 02:3229,37699,040,94825,851,20602,224,128
20Dec 29, 2022 02:3229,40386,461,59825,874,51002,228,224
21Dec 29, 2022 02:3129,40889,754,53625,878,98202,224,128
22Dec 29, 2022 02:3229,49793,969,63425,957,54002,240,512
23Dec 29, 2022 02:3129,597111,120,16726,045,10802,228,224
24Dec 29, 2022 02:3129,632100,090,12826,076,26402,232,320