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:44zielajzielajScore: 197,453Success
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:44196,842196,934,953173,221,00002,531,328
2Dec 8, 2024 20:44197,102193,136,539173,450,00002,531,328
3Dec 8, 2024 20:44197,161199,102,054171,508,0001,994,0002,433,024
4Dec 8, 2024 20:44197,213199,130,034173,547,00002,428,928
5Dec 8, 2024 20:44197,453199,263,937172,761,000998,0002,531,328
6Dec 8, 2024 20:44197,509195,187,065172,810,000998,0002,531,328
7Dec 8, 2024 20:44198,506198,825,438174,685,00002,424,832
8Dec 8, 2024 20:44198,652201,477,293174,814,00002,531,328
9Dec 8, 2024 20:44198,707196,819,412173,863,000999,0002,428,928