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 16, 2024 20:59Ivan BessonovIvan BessonovScore: 29,765Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 20:5929,57848,036,66024,027,0002,002,0002,289,664
2May 16, 2024 20:5929,62850,992,41825,071,0001,002,0002,273,280
3May 16, 2024 20:5929,68149,919,31525,115,0001,004,0002,289,664
4May 16, 2024 20:5929,68346,126,22124,112,0002,009,0002,277,376
5May 16, 2024 20:5929,69054,288,98525,123,0001,004,0002,289,664
6May 16, 2024 20:5929,73352,667,59424,153,0002,012,0002,269,184
7May 16, 2024 20:5929,76544,818,20724,179,0002,014,0002,289,664
8May 16, 2024 20:5929,80152,284,73524,208,0002,017,0002,289,664
9May 16, 2024 20:5929,87052,068,82024,264,0002,022,0002,289,664
10May 16, 2024 20:5936,33696,164,70131,975,75702,260,992
11May 16, 2024 20:5936,40288,297,24832,033,59302,256,896
12May 16, 2024 20:5936,428104,759,49532,056,26902,252,800