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 20:40zielajzielajError
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 20:3900000Error: expected "51333060150810 ", got "51333026332169 "stderr
2Dec 17, 2024 20:404,78421,406,8423,158,0001,052,0002,273,280
3Dec 17, 2024 20:404,78819,398,4783,160,0001,053,0002,531,328
4Dec 17, 2024 20:404,83922,173,4553,194,0001,064,0002,273,280
5Dec 17, 2024 20:404,87716,290,1764,292,00002,531,328
6Dec 17, 2024 20:404,88920,972,8183,227,0001,075,0002,510,848
7Dec 17, 2024 20:404,90519,751,0304,316,00002,519,040
8Dec 17, 2024 20:404,98924,594,7564,390,00002,531,328
9Dec 17, 2024 20:405,00025,633,9063,300,0001,100,0002,531,328
10Dec 17, 2024 20:405,00817,916,8294,407,00002,531,328