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 09:14Ivan BessonovIvan BessonovScore: 45,891Success
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 09:1445,65363,967,34538,167,0002,008,0002,289,664
2May 5, 2024 09:1445,78264,614,19438,274,0002,014,0002,289,664
3May 5, 2024 09:1445,78664,766,38238,278,0002,014,0002,289,664
4May 5, 2024 09:1445,80257,983,41739,299,0001,007,0002,285,568
5May 5, 2024 09:1445,82863,650,46939,321,0001,008,0002,269,184
6May 5, 2024 09:1445,88272,060,87040,376,00002,277,376
7May 5, 2024 09:1445,89170,330,98840,384,00002,285,568
8May 5, 2024 09:1445,92865,232,55739,407,0001,010,0002,289,664
9May 5, 2024 09:1445,94767,071,10839,423,0001,010,0002,273,280
10May 5, 2024 09:1445,997118,943,49140,477,06002,256,896
11May 5, 2024 09:1446,116118,698,90740,581,69702,252,800
12May 5, 2024 09:1446,336109,545,61440,775,33002,252,800