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 listJul 5, 2024 15:13mberman12mberman12Score: 7,360,513Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2024 15:137,351,0416,528,126,4806,468,916,44402,260,992
2Jul 5, 2024 15:137,360,5136,538,231,9396,477,251,73902,260,992
3Jul 5, 2024 15:137,396,9266,563,176,9786,509,294,48702,260,992