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 17, 2023 17:48Bernard TeoBernard TeoScore: 120,473Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 17, 2023 17:37120,141160,183,007105,724,20002,248,704
2Jul 17, 2023 17:48120,312161,296,639105,874,15802,248,704
3Jul 17, 2023 17:37120,341177,721,235105,899,82602,256,896
4Jul 17, 2023 17:36120,442174,507,819105,988,75102,248,704
5Jul 17, 2023 17:36120,473170,458,600106,015,92402,260,992
6Jul 17, 2023 17:37120,525159,692,004106,062,16902,269,184
7Jul 17, 2023 17:36120,621156,821,829106,146,31702,252,800
8Jul 17, 2023 17:48120,662171,235,448106,182,15702,256,896
9Jul 17, 2023 17:48121,120199,694,396106,585,32802,248,704