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 14, 2024 16:02zielajzielajScore: 6,895Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 16:026,86427,400,7225,034,0001,006,0002,269,184
2Dec 14, 2024 16:026,87422,922,8094,033,0002,016,0002,531,328
3Dec 14, 2024 16:026,89319,157,6035,055,0001,011,0002,510,848
4Dec 14, 2024 16:026,89423,527,4475,056,0001,011,0002,506,752
5Dec 14, 2024 16:026,89521,621,3485,057,0001,011,0002,502,656
6Dec 14, 2024 16:026,90126,824,4915,061,0001,012,0002,531,328
7Dec 14, 2024 16:026,90126,928,7894,049,0002,024,0002,531,328
8Dec 14, 2024 16:026,90518,283,1035,064,0001,012,0002,351,104
9Dec 14, 2024 16:026,97025,502,4845,112,0001,022,0002,510,848