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:41Ivan BessonovIvan BessonovScore: 15,832Success
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:4115,43958,073,94213,586,69102,191,360
2May 20, 2024 20:4115,45188,408,49913,597,13702,195,456
3May 20, 2024 20:4115,48360,004,26513,625,45302,191,360
4May 20, 2024 20:4015,51458,005,24013,652,49602,207,744
5May 20, 2024 20:4115,80231,196,84111,920,0001,986,0002,342,912
6May 20, 2024 20:4015,80235,049,04311,920,0001,986,0002,289,664
7May 20, 2024 20:4015,80829,720,25512,918,000993,0002,289,664
8May 20, 2024 20:4115,81433,142,77811,928,0001,988,0002,342,912
9May 20, 2024 20:4015,81430,318,14312,922,000994,0002,289,664
10May 20, 2024 20:4115,82234,771,26312,929,000994,0002,289,664
11May 20, 2024 20:4115,82738,791,36312,857,0001,071,0002,289,664
12May 20, 2024 20:4015,83034,983,38512,935,000995,0002,289,664
13May 20, 2024 20:4015,83234,510,22711,942,0001,990,0002,289,664
14May 20, 2024 20:4015,83637,145,50412,864,0001,072,0002,289,664
15May 20, 2024 20:4115,84538,795,09611,952,0001,992,0002,289,664
16May 20, 2024 20:4115,85035,934,73012,952,000996,0002,289,664
17May 20, 2024 20:4115,85930,791,19311,963,0001,993,0002,289,664
18May 20, 2024 20:4115,86638,087,04011,968,0001,994,0002,289,664
19May 20, 2024 20:4015,88927,439,13311,985,0001,997,0002,285,568
20May 20, 2024 20:4015,89140,140,86711,987,0001,997,0002,289,664
21May 20, 2024 20:4115,91531,352,03912,005,0002,000,0002,289,664
22May 20, 2024 20:4015,93492,440,21514,021,64502,195,456
23May 20, 2024 20:4016,05575,175,52014,128,14202,334,720
24May 20, 2024 20:4016,58231,664,20413,550,0001,042,0002,428,928