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 19:27Ivan BessonovIvan BessonovScore: 16,066Success
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 19:2715,58529,626,04613,715,00002,342,912
2May 20, 2024 19:2715,62330,633,32312,691,0001,057,0002,289,664
3May 20, 2024 19:2715,63029,232,91112,696,0001,058,0002,289,664
4May 20, 2024 19:2715,84279,413,33013,940,56702,199,552
5May 20, 2024 19:2715,87160,981,54013,966,22402,203,648
6May 20, 2024 19:2715,89265,086,64013,985,37302,199,552
7May 20, 2024 19:2716,06630,844,78113,129,0001,009,0002,285,568
8May 20, 2024 19:2716,08231,724,69912,131,0002,021,0002,351,104
9May 20, 2024 19:2716,19142,598,32513,231,0001,017,0002,289,664
10May 20, 2024 19:2716,24132,490,36512,251,0002,041,0002,355,200
11May 20, 2024 19:2716,27338,425,32512,275,0002,045,0002,342,912
12May 20, 2024 19:2716,31032,673,58812,303,0002,050,0002,289,664