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 listDec 17, 2024 02:20zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 17, 2024 02:1900000Error: expected "50947206144433 ", got "50947027187450 "stderr
2Dec 17, 2024 02:204,95318,888,3654,359,00002,510,848
3Dec 17, 2024 02:205,06323,012,6494,455,00002,531,328
4Dec 17, 2024 02:205,08121,111,6714,471,00002,519,040