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:32mberman12mberman12Score: 2,919,871Success
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:322,910,6532,626,700,6582,561,374,22002,260,992
2Jul 5, 2024 16:322,919,8712,632,207,8862,569,486,71502,256,896
3Jul 5, 2024 16:322,952,5562,656,107,1112,598,249,17902,265,088