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 listJan 17, 2025 20:02matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2025 20:0200000Error: expected "50732382341111 ", got "50727772127424 "stderr
2Jan 17, 2025 20:0200000Error: expected "50975496513666 ", got "50970386345429 "stderr
3Jan 17, 2025 20:0300000Error: expected "51406124161816 ", got "51405945369979 "stderr
4Jan 17, 2025 20:0300000Error: expected "51076109927835 ", got "51070609016660 "stderr
5Jan 17, 2025 20:0300000Error: expected "51611378065475 ", got "51613250557443 "stderr
6Jan 17, 2025 20:0400000Error: expected "50911389467452 ", got "50907564764448 "stderr