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 13, 2024 01:01zielajzielajScore: 8,727Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 13, 2024 01:018,68924,692,6647,646,00002,269,184
2Dec 13, 2024 01:018,70124,369,9557,657,00002,531,328
3Dec 13, 2024 01:018,71025,052,3967,665,00002,318,336
4Dec 13, 2024 01:018,71131,076,5567,666,00002,322,432
5Dec 13, 2024 01:018,72724,551,9497,680,00002,322,432
6Dec 13, 2024 01:018,74523,172,9506,597,0001,099,0002,326,528
7Dec 13, 2024 01:018,75329,901,9597,703,00002,527,232
8Dec 13, 2024 01:018,76529,710,0637,713,00002,326,528
9Dec 13, 2024 01:018,78324,387,9186,625,0001,104,0002,330,624