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 11:11Ivan BessonovIvan BessonovScore: 21,061Success
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 11:1119,96939,735,50116,540,0001,033,0002,502,656
2May 18, 2024 11:1119,99737,078,73316,562,0001,035,0002,289,664
3May 18, 2024 11:1120,04837,979,49216,605,0001,037,0002,289,664
4May 18, 2024 11:1120,07543,847,89317,666,00002,289,664
5May 18, 2024 11:1120,13643,228,61917,720,00002,494,464
6May 18, 2024 11:1121,04239,640,84217,489,0001,028,0002,289,664
7May 18, 2024 11:1121,06138,715,74817,505,0001,029,0002,506,752
8May 18, 2024 11:1121,12044,066,73618,586,00002,289,664
9May 18, 2024 11:1121,23848,670,00118,689,00002,502,656
10May 18, 2024 11:1121,91688,935,53319,285,65702,224,128
11May 18, 2024 11:1122,22082,404,02019,553,66602,232,320
12May 18, 2024 11:1122,22394,862,29419,556,05002,228,224