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 18:17Bernard TeoBernard TeoScore: 75,304Success
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 18:2075,017137,738,85666,014,97002,260,992
2Jul 17, 2023 18:2075,030124,107,43066,026,28702,252,800
3Jul 17, 2023 18:2075,302132,368,92966,265,51702,256,896
4Jul 17, 2023 18:1775,304148,023,63366,267,38002,265,088
5Jul 17, 2023 18:1776,260150,162,95167,108,52302,252,800
6Jul 17, 2023 18:1777,403138,168,11668,114,41102,244,608