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 26, 2023 04:57Kenneth 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 26, 2023 04:5700000Error: Exit with code 1: 0000000000687017 000000000143ed0a 00000000010453d6 0000000000aa8a79 0.000000 0.000000 0.000000 0.000000 219022051.000000 679321927.000000 545946329.000000 357650219.000000 e80e160000000000 50b7c28000000000 6bca208000000000 9e51...stderr