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:31mberman12mberman12Score: 2,861,921Success
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:312,842,1022,558,798,2932,501,049,74502,260,992
2Jul 5, 2024 16:312,861,9212,579,170,2942,518,490,69602,256,896
3Jul 5, 2024 16:312,885,6122,611,483,7702,539,338,26902,256,896