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 listDec 2, 2022 04:00apuxbtapuxbtError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 2, 2022 04:0000000Error: expected "50811442692368 ", got "50811442691869 "
2Dec 2, 2022 04:0132,395110,992,29928,507,34902,203,648
3Dec 2, 2022 04:0132,623108,755,37028,707,88702,187,264
4Dec 2, 2022 04:0132,69095,521,78228,767,38102,207,744