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 listJul 23, 2023 18:05Mikhail ShirokovMikhail ShirokovScore: 2,261,124Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2023 18:052,248,3252,046,712,3481,978,526,26702,260,992
2Jul 23, 2023 18:052,261,1242,049,099,0231,989,789,44502,256,896
3Jul 23, 2023 18:052,263,9192,056,446,8661,992,248,73402,252,800