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:14mberman12mberman12Score: 7,372,230Success
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:147,331,2016,507,000,2816,451,456,93702,252,800
2Jul 6, 2024 23:147,335,3946,514,465,9046,455,146,28402,265,088
3Jul 6, 2024 23:147,345,1676,552,767,9076,463,747,23802,260,992
4Jul 6, 2024 23:147,372,2306,558,428,4536,487,562,10602,260,992
5Jul 6, 2024 23:147,378,9576,557,210,4966,493,482,34202,256,896
6Jul 6, 2024 23:147,400,1566,579,632,3416,512,137,37202,256,896