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 16:46Ivan BessonovIvan BessonovScore: 17,638Success
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 16:4617,51631,286,57115,414,00002,301,952
2May 18, 2024 16:4617,56030,928,90814,423,0001,030,0002,301,952
3May 18, 2024 16:4617,60837,100,34214,462,0001,033,0002,285,568
4May 18, 2024 16:4617,61035,412,14114,464,0001,033,0002,289,664
5May 18, 2024 16:4617,62236,378,79314,474,0001,033,0002,289,664
6May 18, 2024 16:4617,63030,526,87014,480,0001,034,0002,289,664
7May 18, 2024 16:4617,63832,188,14414,487,0001,034,0002,297,856
8May 18, 2024 16:4617,68631,855,74914,527,0001,037,0002,289,664
9May 18, 2024 16:4618,41138,339,01114,177,0002,025,0002,301,952
10May 18, 2024 16:4618,49689,433,40916,276,47602,297,856
11May 18, 2024 16:4619,13394,494,69316,837,36602,285,568
12May 18, 2024 16:4619,40767,507,22617,077,76502,285,568