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 24, 2023 22:12Mikhail ShirokovMikhail ShirokovScore: 2,178,536Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 24, 2023 22:122,175,6001,993,209,9851,914,528,20302,256,896
2Jul 24, 2023 22:122,178,5361,973,319,0441,917,111,34302,244,608
3Jul 24, 2023 22:122,182,6181,989,669,5171,920,703,79602,256,896