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 19, 2024 13:21zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2024 13:2000000Error: expected "51189479008427 ", got "51190439954748 "stderr
2Dec 19, 2024 13:214,92325,661,6084,332,00002,535,424
3Dec 19, 2024 13:215,03225,261,3704,428,00002,273,280
4Dec 19, 2024 13:215,05626,022,6933,337,0001,112,0002,494,464