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 7, 2024 00:19mberman12mberman12Score: 10,070,358Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2024 00:1910,010,0748,878,146,4188,808,864,82802,260,992
2Jul 7, 2024 00:1910,070,3588,916,706,9538,861,915,01102,265,088
3Jul 7, 2024 00:1910,081,2458,928,770,7588,871,495,71902,256,896