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:47Ivan BessonovIvan BessonovScore: 41,027Success
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:4740,88157,413,92634,976,000999,0002,265,088
2May 16, 2024 20:4740,93858,594,10634,024,0002,001,0002,289,664
3May 16, 2024 20:4740,95063,779,95135,035,0001,001,0002,289,664
4May 16, 2024 20:4740,95556,566,39634,038,0002,002,0002,281,472
5May 16, 2024 20:4740,98856,442,30334,066,0002,003,0002,269,184
6May 16, 2024 20:4740,99465,099,42534,071,0002,004,0002,527,232
7May 16, 2024 20:4741,02757,993,61534,099,0002,005,0002,289,664
8May 16, 2024 20:4741,03666,524,27634,106,0002,006,0002,289,664
9May 16, 2024 20:4741,05767,549,96334,123,0002,007,0002,527,232
10May 16, 2024 20:4743,851108,393,56438,589,11802,252,800
11May 16, 2024 20:4743,979119,814,34138,701,28202,260,992
12May 16, 2024 20:4743,988109,534,27638,709,67202,252,800