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 22, 2024 12:12zielajzielajScore: 4,189Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 22, 2024 12:124,08925,671,6202,399,0001,199,0002,465,792
2Dec 22, 2024 12:124,18922,865,4423,686,00002,453,504
3Dec 22, 2024 12:125,36820,455,6133,543,0001,181,0002,453,504