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 5, 2024 08:50Ivan BessonovIvan BessonovScore: 47,852Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 08:5047,59269,065,99839,887,0001,994,0002,265,088
2May 5, 2024 08:5047,61576,374,04639,906,0001,995,0002,265,088
3May 5, 2024 08:5047,67265,566,80439,954,0001,997,0002,289,664
4May 5, 2024 08:5047,77365,179,40540,039,0002,001,0002,285,568
5May 5, 2024 08:5047,79470,819,42140,057,0002,002,0002,289,664
6May 5, 2024 08:5047,846110,439,08442,104,76702,260,992
7May 5, 2024 08:5047,85266,349,35840,105,0002,005,0002,277,376
8May 5, 2024 08:5047,860113,644,08542,116,39402,265,088
9May 5, 2024 08:5047,948116,550,04042,194,25002,256,896
10May 5, 2024 08:5047,97364,923,94540,206,0002,010,0002,289,664
11May 5, 2024 08:5048,13968,440,32641,354,0001,008,0002,273,280
12May 5, 2024 08:5048,18061,213,89341,389,0001,009,0002,355,200