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 18, 2024 14:52Ivan BessonovIvan BessonovScore: 20,341Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 14:5219,59547,663,62615,216,0002,028,0002,289,664
2May 18, 2024 14:5119,62343,874,98415,237,0002,031,0002,289,664
3May 18, 2024 14:5219,66642,714,15516,288,0001,018,0002,289,664
4May 18, 2024 14:5119,67038,447,46215,274,0002,036,0002,289,664
5May 18, 2024 14:5119,69044,454,60015,289,0002,038,0002,314,240
6May 18, 2024 14:5119,69236,072,89116,310,0001,019,0002,310,144
7May 18, 2024 14:5119,74343,037,62716,352,0001,022,0002,289,664
8May 18, 2024 14:5119,75032,762,74715,336,0002,044,0002,289,664
9May 18, 2024 14:5219,75637,642,63215,340,0002,045,0002,310,144
10May 18, 2024 14:5119,76343,747,47516,368,0001,023,0002,314,240
11May 18, 2024 14:5219,78539,770,94116,387,0001,024,0002,310,144
12May 18, 2024 14:5220,28947,234,78315,871,0001,983,0002,301,952
13May 18, 2024 14:5220,34141,403,80416,906,000994,0002,306,048
14May 18, 2024 14:5220,34342,889,19315,913,0001,989,0002,301,952
15May 18, 2024 14:5120,39340,229,97615,952,0001,994,0002,306,048
16May 18, 2024 14:5220,39737,491,12615,955,0001,994,0002,293,760
17May 18, 2024 14:5220,48940,099,46816,027,0002,003,0002,404,352
18May 18, 2024 14:5120,53839,900,89916,065,0002,008,0002,289,664
19May 18, 2024 14:5221,18984,722,29918,646,16202,285,568
20May 18, 2024 14:5121,22577,340,25618,677,63302,281,472
21May 18, 2024 14:5221,69494,832,55019,090,84502,285,568
22May 18, 2024 14:5221,86687,112,60519,242,29702,289,664
23May 18, 2024 14:5121,87693,109,80119,250,46602,285,568
24May 18, 2024 14:5121,90885,971,16119,279,39302,297,856