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 19:16Andrey 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 19:1600000Error: expected "51694806544177 ", got "51694836897326 "
2Aug 14, 2024 19:1600000Error: expected "51366244084905 ", got "51367868179349 "
3Aug 14, 2024 19:1600000Error: expected "51161622070180 ", got "51163585025357 "
4Aug 14, 2024 19:1600000Error: expected "51350579858321 ", got "51351323659842 "
5Aug 14, 2024 19:1600000Error: expected "50703685076542 ", got "50706605446361 "
6Sep 15, 2024 11:3000000Error: expected "51564194334871 ", got "51564693804942 "
7Sep 15, 2024 11:3000000Error: expected "50984459634312 ", got "50984475048223 "
8Sep 15, 2024 11:3100000Error: expected "51375571639393 ", got "51375687842586 "
9Aug 14, 2024 19:1738,64796,481,38834,009,42902,203,648
10Aug 14, 2024 19:1738,666103,000,69934,025,72902,199,552
11Aug 14, 2024 19:1738,68690,631,62434,043,72902,207,744