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 listNov 26, 2023 17:32mmalczakmmalczakScore: 3,387,551Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 26, 2023 17:323,386,4813,036,410,7852,980,102,94602,273,280
2Nov 26, 2023 17:323,387,5513,041,816,4122,981,044,79102,277,376
3Nov 26, 2023 17:323,389,4013,041,598,4362,982,672,74402,252,800