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 14, 2024 17:29MatthiasMatthiasError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 17:2900000Error: expected "51137293763370 ", got "1471 "
2Dec 14, 2024 17:2900000Error: expected "50984367461799 ", got "42677 "
3Dec 14, 2024 17:3100000Error: expected "51269217127764 ", got "12721 "
4Dec 14, 2024 17:3100000Error: expected "51262126932966 ", got "4691 "