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:19Bernard TeoBernard TeoScore: 75,244Success
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:1272,629131,182,16363,913,25302,252,800
2Jul 17, 2023 18:1272,656141,328,11163,937,28802,260,992
3Jul 17, 2023 18:1272,797120,218,32564,060,99302,248,704
4Jul 17, 2023 18:1975,244159,207,17466,214,95502,256,896
5Jul 17, 2023 18:1976,916162,917,97867,686,18302,248,704
6Jul 17, 2023 18:1977,395143,957,18668,107,42702,265,088