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 16:17mberman12mberman12Score: 4,553,687Success
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 16:174,552,6904,069,150,7734,006,367,48702,248,704
2Jul 5, 2024 16:174,553,6874,069,531,4174,007,244,90402,256,896
3Jul 5, 2024 16:174,577,2474,100,427,8074,027,977,69902,260,992