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 8, 2024 20:31zielajzielajScore: 755,095Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 8, 2024 20:31751,253686,236,265660,103,0001,000,0002,433,024
2Dec 8, 2024 20:31752,103686,699,373661,851,00002,428,928
3Dec 8, 2024 20:31753,308680,983,695662,911,00002,424,832
4Dec 8, 2024 20:31754,256695,449,882662,746,000999,0002,269,184
5Dec 8, 2024 20:31755,095694,740,132663,484,0001,000,0002,531,328
6Dec 8, 2024 20:31755,559684,349,576663,893,000999,0002,269,184
7Dec 8, 2024 20:31757,024687,005,633666,181,00002,510,848
8Dec 8, 2024 20:31758,615694,256,302665,583,0001,998,0002,269,184
9Dec 8, 2024 20:31760,732690,778,336665,448,0003,996,0002,424,832