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 17:24Ivan BessonovIvan BessonovScore: 15,583Success
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 17:2315,05135,149,18511,208,0002,037,0002,289,664
2May 21, 2024 17:2315,06333,669,43311,216,0002,039,0002,289,664
3May 21, 2024 17:2415,09834,264,30611,242,0002,044,0002,347,008
4May 21, 2024 17:2315,10632,548,83511,248,0002,045,0002,289,664
5May 21, 2024 17:2315,15730,153,17012,312,0001,026,0002,347,008
6May 21, 2024 17:2315,22329,933,96412,366,0001,030,0002,289,664
7May 21, 2024 17:2315,46863,392,22313,612,20702,203,648
8May 21, 2024 17:2415,50192,599,07713,641,25702,207,744
9May 21, 2024 17:2315,51261,841,75513,650,33802,199,552
10May 21, 2024 17:2315,52997,510,17813,665,42102,199,552
11May 21, 2024 17:2415,564119,064,81013,696,34002,203,648
12May 21, 2024 17:2415,56735,678,91512,646,0001,053,0002,285,568
13May 21, 2024 17:2415,58358,881,23213,712,86502,199,552
14May 21, 2024 17:2415,63431,713,93612,700,0001,058,0002,289,664
15May 21, 2024 17:2315,67834,262,05012,736,0001,061,0002,285,568
16May 21, 2024 17:2315,79434,613,39612,907,000992,0002,355,200
17May 21, 2024 17:2315,79430,369,23211,914,0001,985,0002,351,104
18May 21, 2024 17:2415,79838,922,16211,916,0001,986,0002,351,104
19May 21, 2024 17:2415,80631,722,02011,922,0001,987,0002,289,664
20May 21, 2024 17:2415,80747,230,54211,923,0001,987,0002,289,664
21May 21, 2024 17:2415,81033,301,18711,926,0001,987,0002,351,104
22May 21, 2024 17:2415,81033,085,03212,920,000993,0002,338,816
23May 21, 2024 17:2415,81133,128,24711,927,0001,987,0002,342,912
24May 21, 2024 17:2315,82529,997,20912,932,000994,0002,338,816