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:59Ivan BessonovIvan BessonovScore: 15,620Success
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:5915,31429,188,30612,440,0001,036,0002,342,912
2May 20, 2024 19:5915,31734,218,57213,479,00002,334,720
3May 20, 2024 19:5915,33235,888,07112,455,0001,037,0002,338,816
4May 20, 2024 19:5915,33633,380,52612,458,0001,038,0002,285,568
5May 20, 2024 19:5915,34236,390,17212,463,0001,038,0002,342,912
6May 20, 2024 19:5915,34330,855,78912,464,0001,038,0002,457,600
7May 20, 2024 19:5915,62090,438,72613,745,62002,199,552
8May 20, 2024 19:5915,642101,919,15313,765,02702,187,264
9May 20, 2024 19:5915,77593,284,74213,881,78402,322,432
10May 20, 2024 19:5915,97430,137,82312,049,0002,008,0002,289,664
11May 20, 2024 19:5916,02032,665,44213,091,0001,007,0002,342,912
12May 20, 2024 19:5916,05239,418,47313,117,0001,009,0002,289,664