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 listMay 21, 2024 17:28Ivan BessonovIvan BessonovScore: 15,741Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2024 17:2815,18532,426,06713,363,00002,289,664
2May 21, 2024 17:2915,23541,690,91712,376,0001,031,0002,289,664
3May 21, 2024 17:2815,24733,656,27212,385,0001,032,0002,285,568
4May 21, 2024 17:2815,26131,205,72712,397,0001,033,0002,285,568
5May 21, 2024 17:2915,26337,103,99812,398,0001,033,0002,289,664
6May 21, 2024 17:2915,27333,768,95812,407,0001,033,0002,355,200
7May 21, 2024 17:2915,28028,549,76312,412,0001,034,0002,355,200
8May 21, 2024 17:2915,29232,027,41012,422,0001,035,0002,289,664
9May 21, 2024 17:2915,29435,931,52212,424,0001,035,0002,285,568
10May 21, 2024 17:2815,30629,378,83212,433,0001,036,0002,351,104
11May 21, 2024 17:2815,30646,565,97312,433,0001,036,0002,338,816
12May 21, 2024 17:2915,30939,866,50013,472,00002,289,664
13May 21, 2024 17:2815,31029,661,85512,437,0001,036,0002,289,664
14May 21, 2024 17:2915,74183,268,07113,851,67102,199,552
15May 21, 2024 17:2815,74657,968,42713,856,80302,195,456
16May 21, 2024 17:2815,78333,944,93111,905,0001,984,0002,289,664
17May 21, 2024 17:2915,84562,811,52813,943,76702,191,360
18May 21, 2024 17:2815,86335,028,79112,962,000997,0002,334,720
19May 21, 2024 17:2815,93056,536,48914,018,59102,203,648
20May 21, 2024 17:2915,93137,686,49612,017,0002,002,0002,289,664
21May 21, 2024 17:2915,95531,853,57712,035,0002,005,0002,289,664
22May 21, 2024 17:2815,97430,516,00312,049,0002,008,0002,285,568
23May 21, 2024 17:2816,00382,429,59414,082,26902,195,456
24May 21, 2024 17:2916,10261,956,13314,169,42502,330,624
25May 21, 2024 17:2916,43280,791,93814,459,94702,256,896
26May 21, 2024 17:2916,49675,658,87114,516,50902,322,432
27May 21, 2024 17:2916,59578,757,04714,603,71802,199,552