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 24, 2024 22:17zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2024 22:1500000Error: expected "50712290120513 ", got "50712326411706 "stderr
2Dec 24, 2024 22:1600000Error: expected "51299959595414 ", got "51300120899415 "stderr
3Dec 24, 2024 22:174,20117,234,8072,465,0001,232,0002,486,272
4Dec 24, 2024 22:174,25824,375,9612,498,0001,249,0002,486,272
5Dec 24, 2024 22:174,26115,188,3633,750,00002,310,144