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 15:33Ivan BessonovIvan BessonovScore: 44,392Success
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 15:3344,18265,449,86636,887,0001,993,0002,387,968
2May 5, 2024 15:3344,19566,590,34736,898,0001,994,0002,269,184
3May 5, 2024 15:3344,19963,538,25938,895,00002,269,184
4May 5, 2024 15:3344,25265,306,52136,945,0001,997,0002,289,664
5May 5, 2024 15:3344,26766,673,24736,958,0001,997,0002,273,280
6May 5, 2024 15:3344,27464,589,42236,963,0001,998,0002,510,848
7May 5, 2024 15:3344,39266,512,42238,064,0001,001,0002,265,088
8May 5, 2024 15:3344,41165,626,98937,078,0002,004,0002,277,376
9May 5, 2024 15:3344,44563,891,46737,107,0002,005,0002,289,664
10May 5, 2024 15:3344,734102,113,42839,365,86702,256,896
11May 5, 2024 15:3344,821106,741,81039,442,68302,256,896
12May 5, 2024 15:3345,022119,800,18339,619,70802,256,896