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 20, 2024 20:00Ivan BessonovIvan BessonovScore: 15,376Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 20:0015,24528,260,40512,384,0001,032,0002,334,720
2May 20, 2024 20:0115,26430,476,52213,432,00002,351,104
3May 20, 2024 20:0115,30730,542,12312,434,0001,036,0002,289,664
4May 20, 2024 20:0015,30835,833,07512,435,0001,036,0002,289,664
5May 20, 2024 20:0115,31028,752,69212,437,0001,036,0002,338,816
6May 20, 2024 20:0115,32533,345,46512,449,0001,037,0002,289,664
7May 20, 2024 20:0015,33542,818,58512,457,0001,038,0002,289,664
8May 20, 2024 20:0115,34235,827,96812,463,0001,038,0002,289,664
9May 20, 2024 20:0015,34528,165,04812,466,0001,038,0002,289,664
10May 20, 2024 20:0115,36033,272,84112,478,0001,039,0002,342,912
11May 20, 2024 20:0015,36433,152,03513,520,00002,289,664
12May 20, 2024 20:0115,37031,163,15212,486,0001,040,0002,334,720
13May 20, 2024 20:0015,37635,458,71613,531,00002,338,816
14May 20, 2024 20:0015,37835,895,85313,533,00002,347,008
15May 20, 2024 20:0115,39528,696,71912,506,0001,042,0002,334,720
16May 20, 2024 20:0015,44330,744,33013,590,00002,342,912
17May 20, 2024 20:0115,66154,312,13813,781,57302,203,648
18May 20, 2024 20:0115,69559,663,95913,811,20202,338,816
19May 20, 2024 20:0015,83538,653,49411,945,0001,990,0002,289,664
20May 20, 2024 20:0116,02384,505,74414,099,92102,330,624
21May 20, 2024 20:0016,050114,701,75014,123,65602,203,648
22May 20, 2024 20:0116,12837,163,56112,166,0002,027,0002,416,640
23May 20, 2024 20:0016,32184,970,97014,362,49002,203,648
24May 20, 2024 20:0016,65284,962,30614,653,33802,260,992