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 listOct 5, 2023 14:11matsuoka-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
1Oct 5, 2023 14:1100000Error: expected "51011829956245 ", got "51011744576136 "
2Oct 5, 2023 14:1100000Error: expected "51147239760754 ", got "51147051384777 "
3Oct 5, 2023 14:1200000Error: expected "51173924030803 ", got "51169904787199 "
4Oct 5, 2023 14:1400000Error: expected "50877168314496 ", got "50876286488153 "