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 19, 2024 08:11Ivan BessonovIvan BessonovScore: 17,082Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 08:1116,37746,832,91213,383,0001,029,0002,334,720
2May 19, 2024 08:1116,42333,972,50114,452,00002,289,664
3May 19, 2024 08:1116,42735,889,69313,424,0001,032,0002,461,696
4May 19, 2024 08:1116,42831,339,30613,425,0001,032,0002,338,816
5May 19, 2024 08:1116,44540,845,33513,439,0001,033,0002,330,624
6May 19, 2024 08:1116,45730,310,56813,448,0001,034,0002,289,664
7May 19, 2024 08:1116,47035,452,89213,459,0001,035,0002,285,568
8May 19, 2024 08:1116,48529,770,48514,507,00002,289,664
9May 19, 2024 08:1116,55631,297,37714,569,00002,285,568
10May 19, 2024 08:1116,67034,243,70214,670,00002,342,912
11May 19, 2024 08:1117,06340,802,80014,014,0001,001,0002,330,624
12May 19, 2024 08:1117,07432,312,86913,022,0002,003,0002,289,664
13May 19, 2024 08:1117,08234,356,15313,028,0002,004,0002,424,832
14May 19, 2024 08:1117,10137,060,74313,043,0002,006,0002,330,624
15May 19, 2024 08:1117,11732,775,96713,055,0002,008,0002,334,720
16May 19, 2024 08:1117,13386,107,50015,077,16202,191,360
17May 19, 2024 08:1117,16637,470,34213,092,0002,014,0002,289,664
18May 19, 2024 08:1117,19039,053,47013,110,0002,017,0002,289,664
19May 19, 2024 08:1117,20638,747,71613,123,0002,018,0002,330,624
20May 19, 2024 08:1117,60178,869,38515,489,22802,187,264
21May 19, 2024 08:1117,60479,355,94415,491,92802,183,168
22May 19, 2024 08:1117,60982,942,01415,495,60302,187,264
23May 19, 2024 08:1117,64577,697,90715,527,90302,252,800
24May 19, 2024 08:1117,79886,350,05115,662,60202,322,432