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 10:55Ivan BessonovIvan BessonovScore: 44,209Success
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 10:5543,88665,586,99637,604,0001,016,0002,379,776
2May 5, 2024 10:5543,94066,609,64538,667,00002,289,664
3May 5, 2024 10:5543,97464,636,09537,679,0001,018,0002,289,664
4May 5, 2024 10:5544,02566,807,19737,723,0001,019,0002,289,664
5May 5, 2024 10:5544,16765,454,44836,874,0001,993,0002,289,664
6May 5, 2024 10:5544,20263,404,80136,904,0001,994,0002,289,664
7May 5, 2024 10:5544,20966,289,04637,907,000997,0002,392,064
8May 5, 2024 10:5544,20966,889,49536,909,0001,995,0002,269,184
9May 5, 2024 10:5544,24464,867,16436,939,0001,996,0002,289,664
10May 5, 2024 10:5544,578121,345,22539,228,48302,256,896
11May 5, 2024 10:5544,85799,124,24139,474,03802,256,896
12May 5, 2024 10:5544,929100,293,54339,537,57802,252,800