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 listJun 18, 2021 11:26Sergey StreminSergey StreminScore: 224,248Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 18, 2021 11:26224,229267,373,037197,321,26302,297,856
2Jun 18, 2021 11:26224,248268,540,653197,338,36502,293,760
3Jun 18, 2021 11:26224,471262,250,620197,534,08502,297,856