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 01:10Kenneth 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 01:1000000Error: Exit with code 1: 20c8478b20c8478b 20c8478b20c8478b 20c8478b20c8478b 20c8478b20c8478b bea488ad1cac39a9 01eda9dba00f67f7 77580681bb8a535d a0280e4fb59817d9 e9bd37a7286bca1b f0f0f0f1c4ec4ec5 ba2e8ba3b6db6db7 cccccccdaaaaaaab 0b21642c0d79435e 0f0f0f...stderr