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 13, 2023 17:53Bernard TeoBernard TeoScore: 520,713Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2023 17:53520,224535,541,251457,796,75802,244,608
2Jul 13, 2023 18:03520,557512,593,394458,089,88402,248,704
3Jul 13, 2023 18:03520,637512,281,771458,160,44202,248,704
4Jul 13, 2023 17:53520,713520,968,859458,227,40502,248,704
5Jul 13, 2023 17:53520,807514,352,573458,309,95902,248,704
6Jul 13, 2023 18:03520,817523,424,558458,319,27402,252,800