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 listJan 1, 2024 22:59Yurkov AlekseyYurkov AlekseyScore: 96,834Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2024 22:5996,451139,654,08884,876,55502,273,280
2Jan 1, 2024 22:5996,834150,599,42885,213,86802,256,896
3Jan 1, 2024 22:5996,873148,499,89785,248,01202,269,184