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 21, 2023 23:10Mikhail ShirokovMikhail ShirokovScore: 2,173,019Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 20, 2021 02:442,168,9721,968,262,1361,908,695,14802,260,992
2Nov 20, 2021 02:442,170,9831,975,904,9221,910,464,74602,252,800
3Nov 20, 2021 02:442,171,1711,970,914,3161,910,630,35502,252,800
4Jul 21, 2023 23:102,173,0191,985,840,1211,912,256,89302,256,896
5Jul 21, 2023 23:102,173,2631,973,819,2731,912,471,39302,260,992
6Jul 21, 2023 23:102,173,8201,967,953,2541,912,961,39902,252,800