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 21:24Ivan BessonovIvan BessonovScore: 16,026Success
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 21:2415,306107,780,62213,469,68702,203,648
2May 20, 2024 21:2415,67434,054,28112,732,0001,061,0002,285,568
3May 20, 2024 21:2415,67531,752,02512,733,0001,061,0002,285,568
4May 20, 2024 21:2415,78529,473,93412,899,000992,0002,347,008
5May 20, 2024 21:2415,80029,218,21111,918,0001,986,0002,289,664
6May 20, 2024 21:2415,80928,958,09311,925,0001,987,0002,289,664
7May 20, 2024 21:2416,02675,741,05914,102,68302,252,800
8May 20, 2024 21:2416,05682,417,50914,129,08202,195,456
9May 20, 2024 21:2416,11338,326,90812,154,0002,025,0002,289,664
10May 20, 2024 21:2416,11836,380,98312,158,0002,026,0002,289,664
11May 20, 2024 21:2416,33434,521,81713,348,0001,026,0002,285,568
12May 20, 2024 21:2416,40535,148,49712,374,0002,062,0002,289,664