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 16, 2023 21:34Andrew EpsteinAndrew EpsteinScore: 120,429Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 16, 2023 21:34120,089179,598,609105,677,92902,252,800
2Jul 16, 2023 21:34120,429181,067,294105,977,47302,244,608
3Jul 16, 2023 21:34120,456162,377,984106,001,48002,252,800