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 19:50Ivan BessonovIvan BessonovScore: 15,475Success
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 19:5115,26136,819,11112,397,0001,033,0002,342,912
2May 20, 2024 19:5115,29428,945,27013,459,00002,289,664
3May 20, 2024 19:5115,32429,539,78812,448,0001,037,0002,338,816
4May 20, 2024 19:5015,32730,876,49312,451,0001,037,0002,289,664
5May 20, 2024 19:5115,35735,573,46412,475,0001,039,0002,347,008
6May 20, 2024 19:5015,36430,679,55513,520,00002,342,912
7May 20, 2024 19:5015,36833,224,08913,524,00002,285,568
8May 20, 2024 19:5115,37232,884,91013,527,00002,289,664
9May 20, 2024 19:5115,38430,869,80412,497,0001,041,0002,342,912
10May 20, 2024 19:5015,39538,505,92512,506,0001,042,0002,289,664
11May 20, 2024 19:5115,40134,784,76312,511,0001,042,0002,289,664
12May 20, 2024 19:5115,46531,552,68312,563,0001,046,0002,289,664
13May 20, 2024 19:5015,47531,369,96712,571,0001,047,0002,289,664
14May 20, 2024 19:5115,55761,941,26513,690,01802,199,552
15May 20, 2024 19:5015,60790,785,15213,734,35302,199,552
16May 20, 2024 19:5115,62759,666,38213,751,90402,199,552
17May 20, 2024 19:5115,66262,274,33413,782,53702,195,456
18May 20, 2024 19:5015,84134,367,27112,945,000995,0002,285,568
19May 20, 2024 19:5015,86629,969,37511,968,0001,994,0002,441,216
20May 20, 2024 19:5016,02236,977,19712,085,0002,014,0002,338,816
21May 20, 2024 19:5116,04230,007,86313,109,0001,008,0002,338,816
22May 20, 2024 19:5016,13034,610,47612,167,0002,027,0002,289,664
23May 20, 2024 19:5016,30475,855,95214,347,56702,330,624
24May 20, 2024 19:5016,37460,493,93514,409,15802,252,800