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 22, 2024 11:34zielajzielajScore: 4,122Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 22, 2024 11:344,08118,338,4752,394,0001,197,0002,457,600
2Dec 22, 2024 11:344,12222,087,8572,418,0001,209,0002,457,600
3Dec 22, 2024 11:344,25819,796,6902,498,0001,249,0002,277,376