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 6, 2024 19:01Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2024 19:0100000Error: expected "51162455834381 ", got "51158739678620 "stderr
2Dec 6, 2024 19:0500000Error: expected "51146525761596 ", got "51149316792414 "stderr
3Dec 6, 2024 19:0600000Error: expected "51250161283529 ", got "51249011500040 "stderr
4Dec 6, 2024 19:0600000Error: expected "51002860185034 ", got "50998187387246 "stderr
5Dec 6, 2024 19:0600000Error: expected "51314857175210 ", got "51311863054412 "stderr
6Dec 6, 2024 19:0600000Error: expected "51029047812591 ", got "51033357948081 "stderr