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 listAug 14, 2024 15:03Andrey LikhachevAndrey LikhachevError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 14, 2024 15:0300000Error: expected "51281659434478 ", got "51282158904549 "
2Aug 14, 2024 15:0300000Error: expected "51337309718717 ", got "51337399716990 "
3Aug 14, 2024 15:0300000Error: expected "51563588973016 ", got "51564712378939 "
4Aug 14, 2024 15:0400000Error: expected "51812092447624 ", got "51812106220685 "
5Aug 14, 2024 15:0400000Error: expected "50817389435769 ", got "50818879129850 "
6Aug 14, 2024 15:0400000Error: expected "51045544569326 ", got "51045722743005 "
7Aug 14, 2024 15:0440,589110,911,12535,718,68502,199,552
8Aug 14, 2024 15:0440,644105,327,81735,766,84302,207,744
9Aug 14, 2024 15:0440,859100,647,83335,956,06502,207,744