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 14, 2023 02:54zypehzypehError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 14, 2023 02:5400000Error: expected "51074367555812 ", got "761714301 "
2May 11, 2024 14:5700000Error: expected "51416816333324 ", got "2912775440 "
3May 11, 2024 14:5700000Error: expected "51306555703678 ", got "2061218637 "