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:48zielajzielajError
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:4600000Error: expected "50881422755596 ", got "50881385730015 "stderr
2Dec 17, 2024 20:4700000Error: expected "51230134332240 ", got "51230114262299 "stderr
3Dec 17, 2024 20:484,89323,631,6163,230,0001,076,0002,506,752
4Dec 17, 2024 20:485,01919,098,7914,417,00002,510,848
5Dec 17, 2024 20:485,03322,023,8883,322,0001,107,0002,510,848