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 24, 2023 00:26Kenneth 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 24, 2023 00:2600000Error: Exit with code 1: 000000004accae7a 000000004accae7a 000000004accae7a 000000004accae7a 1b33282c85e40214 2abe1a8f10db580e 0ef5bc7f08a3bec8 18eee4d387331efc fc12a94800000000 8c1d532800000000 bdd7104e00000000 3c66708200000000 1745d1745d1745d2 249249...stderr