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 listAug 23, 2023 21:39Mikhail ShirokovMikhail ShirokovScore: 12,636,583Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 23, 2023 21:3912,609,30411,160,113,11411,096,187,39702,252,800
2Aug 23, 2023 21:3912,636,58311,185,044,19211,120,192,63402,252,800
3Aug 23, 2023 21:3912,680,10011,234,063,40911,158,487,92602,260,992