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 23, 2023 21:50Kenneth MaplesKenneth MaplesError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2023 21:5000000Error: Exit with code 1: 0000000012f0cac3 0000000012f0cac3 0000000012f0cac3 0000000012f0cac3 06e332757eb1e2f6 0ad2bd01c462d9f9 03c9c2270f27089c 0650439661f5dc82 5634135c00000000 62e41e6c00000000 fc363dd900000000 4f0511bf00000000 1745d1745d1745d2 249249...stderr