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 15:29Ivan BessonovIvan BessonovScore: 20,015Success
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 15:2319,24947,308,84615,943,000996,0002,289,664
2May 18, 2024 15:2919,25247,010,04814,949,0001,993,0002,289,664
3May 18, 2024 15:2919,26739,614,50915,958,000997,0002,289,664
4May 18, 2024 15:2319,29338,529,08514,981,0001,997,0002,289,664
5May 18, 2024 15:2319,30044,530,94615,985,000999,0002,301,952
6May 18, 2024 15:2919,30347,071,72714,989,0001,998,0002,306,048
7May 18, 2024 15:2919,32442,075,44416,005,0001,000,0002,306,048
8May 18, 2024 15:2319,32540,441,00515,006,0002,000,0002,310,144
9May 18, 2024 15:2319,36632,724,88216,040,0001,002,0002,289,664
10May 18, 2024 15:2919,37748,643,00115,046,0002,006,0002,289,664
11May 18, 2024 15:2320,00838,547,30416,572,0001,035,0002,289,664
12May 18, 2024 15:2920,01479,343,26317,612,71102,297,856
13May 18, 2024 15:2920,01538,016,38017,613,00002,289,664
14May 18, 2024 15:2320,01741,552,79116,579,0001,036,0002,289,664
15May 18, 2024 15:2320,03038,247,10216,590,0001,036,0002,289,664
16May 18, 2024 15:2920,03541,525,32316,594,0001,037,0002,306,048
17May 18, 2024 15:2920,03633,160,98617,632,00002,310,144
18May 18, 2024 15:2920,04881,198,38417,642,55502,281,472
19May 18, 2024 15:2920,06440,124,55116,618,0001,038,0002,289,664
20May 18, 2024 15:2320,12433,181,09816,668,0001,041,0002,289,664
21May 18, 2024 15:2320,51064,126,79718,049,11702,289,664
22May 18, 2024 15:2320,61780,889,30018,143,08302,277,376
23May 18, 2024 15:2320,69092,629,52118,207,11002,289,664
24May 18, 2024 15:2920,712117,766,62718,226,43902,289,664