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:02Andrey 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:0200000Error: expected "50996517083701 ", got "50997804041900 "
2Aug 14, 2024 15:0200000Error: expected "51409780411196 ", got "51411875055753 "
3Aug 14, 2024 15:0200000Error: expected "51555917451344 ", got "51556209990163 "
4Aug 14, 2024 15:0200000Error: expected "50946003613952 ", got "50947884259533 "
5Aug 14, 2024 15:0200000Error: expected "50904877256344 ", got "50906134036415 "
6Aug 14, 2024 15:0200000Error: expected "51343766768632 ", got "51346741370594 "
7Aug 14, 2024 15:0200000Error: expected "51158108361028 ", got "51158977168367 "
8Aug 14, 2024 15:0300000Error: expected "51598777848751 ", got "51599237980952 "
9Aug 14, 2024 15:0300000Error: expected "51317975527900 ", got "51319069398287 "