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 9, 2024 01:47zielajzielajScore: 31,183Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 9, 2024 01:4731,13158,722,45126,417,000978,0002,531,328
2Dec 9, 2024 01:4731,18348,681,07026,425,0001,016,0002,355,200
3Dec 9, 2024 01:4731,23055,984,31427,482,00002,269,184