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 listOct 2, 2023 03:24apuxbtapuxbtScore: 104,757Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2023 03:21104,659161,307,17192,100,11402,232,320
2Oct 2, 2023 03:21104,674166,780,42892,112,70202,248,704
3Oct 2, 2023 03:24104,737166,181,87892,168,29002,232,320
4Oct 2, 2023 03:24104,757158,307,92492,186,06002,248,704
5Oct 2, 2023 03:21104,858149,039,44692,274,77402,240,512
6Oct 2, 2023 03:24105,567144,691,78892,899,35702,232,320