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 14:11Ivan BessonovIvan BessonovScore: 15,255Success
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 14:1215,08131,466,07711,230,0002,041,0002,285,568
2May 21, 2024 14:1115,11028,848,39312,275,0001,022,0002,469,888
3May 21, 2024 14:1115,18330,131,68411,306,0002,055,0002,289,664
4May 21, 2024 14:1215,18430,322,38311,307,0002,055,0002,351,104
5May 21, 2024 14:1215,19829,198,71412,346,0001,028,0002,347,008
6May 21, 2024 14:1115,20729,400,91313,382,00002,289,664
7May 21, 2024 14:1215,21429,825,66013,388,00002,342,912
8May 21, 2024 14:1215,22233,179,43412,365,0001,030,0002,289,664
9May 21, 2024 14:1215,22238,661,71712,365,0001,030,0002,289,664
10May 21, 2024 14:1115,23435,153,06112,375,0001,031,0002,289,664
11May 21, 2024 14:1215,23930,082,84912,379,0001,031,0002,289,664
12May 21, 2024 14:1215,24542,153,52112,384,0001,032,0002,289,664
13May 21, 2024 14:1115,25532,260,58812,392,0001,032,0002,347,008
14May 21, 2024 14:1115,26028,910,65112,396,0001,033,0002,338,816
15May 21, 2024 14:1215,26534,488,43112,400,0001,033,0002,347,008
16May 21, 2024 14:1115,27729,563,13912,410,0001,034,0002,289,664
17May 21, 2024 14:1115,80235,120,89212,913,000993,0002,289,664
18May 21, 2024 14:1115,80732,215,46611,923,0001,987,0002,285,568
19May 21, 2024 14:1215,86458,234,66613,960,48302,334,720
20May 21, 2024 14:1216,05392,882,58314,126,68002,199,552
21May 21, 2024 14:1216,10061,238,51114,167,82302,203,648
22May 21, 2024 14:1116,147105,007,66214,209,33302,187,264
23May 21, 2024 14:1116,19585,739,28214,251,84702,203,648
24May 21, 2024 14:1116,23861,885,96514,289,26702,338,816