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 listDec 17, 2024 22:53zielajzielajScore: 5,051Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 17, 2024 22:524,82519,364,5452,123,0002,123,0002,420,736
2Dec 17, 2024 22:534,86623,876,7932,141,0002,141,0002,469,888
3Dec 17, 2024 22:524,89020,049,1394,303,00002,322,432
4Dec 17, 2024 22:535,05130,270,7273,334,0001,111,0002,531,328
5Dec 17, 2024 22:535,05517,863,8043,336,0001,112,0002,326,528
6Dec 17, 2024 22:526,43918,333,3525,666,00002,318,336