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 6, 2024 23:08mberman12mberman12Score: 7,913,726Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2024 23:087,905,4047,031,820,9056,956,755,46302,260,992
2Jul 6, 2024 23:087,913,7267,023,647,3976,964,079,21102,252,800
3Jul 6, 2024 23:087,936,6167,052,395,9236,984,222,24702,260,992