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 10, 2024 00:28zielajzielajScore: 25,457Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 10, 2024 00:2825,36549,984,82422,321,00002,269,184
2Dec 10, 2024 00:2825,36748,297,98722,323,00002,531,328
3Dec 10, 2024 00:2825,43446,457,01921,365,0001,017,0002,359,296
4Dec 10, 2024 00:2825,44144,538,90922,388,00002,531,328
5Dec 10, 2024 00:2825,45749,285,48722,402,00002,269,184
6Dec 10, 2024 00:2825,49042,959,69622,431,00002,351,104
7Dec 10, 2024 00:2825,50942,422,98421,428,0001,020,0002,359,296
8Dec 10, 2024 00:2825,53542,717,66222,471,00002,531,328
9Dec 10, 2024 00:2825,57550,478,02322,506,00002,363,392