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 6, 2024 23:23mberman12mberman12Score: 7,351,122Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2024 23:237,348,3166,537,261,9636,466,517,89102,252,800
2Jul 6, 2024 23:237,351,1226,523,868,2506,468,987,69802,265,088
3Jul 6, 2024 23:237,407,6946,583,965,7096,518,770,63802,252,800