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 22, 2022 17:42Eugene ZhydzetskiEugene ZhydzetskiScore: 19,206,937Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 22, 2022 17:4219,193,88816,951,465,13816,890,621,28102,203,648
2Aug 22, 2022 17:4219,206,93716,966,548,50816,902,104,59902,203,648
3Aug 22, 2022 17:4219,275,53617,016,160,11016,962,471,94102,195,456