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:07Andrey 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:0700000Error: expected "51315916686969 ", got "51316111035257 "
2Aug 14, 2024 15:0838,618107,198,48733,983,75002,207,744
3Aug 14, 2024 15:0838,657100,556,09734,017,84002,203,648
4Aug 14, 2024 15:0838,699104,130,12934,055,14202,199,552