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 20:19Ivan BessonovIvan BessonovScore: 15,336Success
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 20:1915,22333,455,06913,396,00002,342,912
2May 20, 2024 20:1915,24528,778,45312,384,0001,032,0002,334,720
3May 20, 2024 20:1915,24830,044,79612,386,0001,032,0002,338,816
4May 20, 2024 20:1915,24930,492,14813,419,00002,338,816
5May 20, 2024 20:1915,26035,944,78013,429,00002,289,664
6May 20, 2024 20:1915,31934,634,97613,481,00002,289,664
7May 20, 2024 20:1915,33632,681,49512,458,0001,038,0002,289,664
8May 20, 2024 20:1915,36534,726,65412,481,0001,040,0002,347,008
9May 20, 2024 20:1915,54365,607,63713,678,24302,187,264
10May 20, 2024 20:1915,58581,826,73813,714,88302,203,648
11May 20, 2024 20:1915,61249,633,05513,738,55902,203,648
12May 20, 2024 20:1916,25529,193,70211,239,0003,065,0002,371,584