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:59Kenneth 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:5900000Error: Exit with code 1: 0000000003b83bce 00000000012df93a 0000000000f325df 00000000004ac924 16384.000000 4096.000000 16384.000000 1.000000 1996978639.000000 633284429.000000 509918191.000000 156836993.000000 73dc1dc000000000 5c9fb48000000000 fba4cf000...stderr