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 5, 2024 16:24mberman12mberman12Score: 4,275,833Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2024 16:244,263,3423,813,263,8503,751,740,89102,260,992
2Jul 5, 2024 16:244,275,8333,826,539,0023,762,733,32002,256,896
3Jul 5, 2024 16:244,276,7823,841,301,8903,763,568,06702,260,992