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 15:09zielajzielajScore: 7,886Success
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 15:097,86327,848,6255,931,000988,0002,269,184
2Dec 13, 2024 15:097,86523,570,9094,944,0001,977,0002,314,240
3Dec 13, 2024 15:097,87722,839,3065,942,000990,0002,318,336
4Dec 13, 2024 15:097,88126,270,4195,945,000990,0002,310,144
5Dec 13, 2024 15:097,88623,711,8565,949,000991,0002,531,328
6Dec 13, 2024 15:097,91723,351,7615,972,000995,0002,314,240
7Dec 13, 2024 15:097,92018,121,6854,979,0001,991,0002,318,336
8Dec 13, 2024 15:097,94026,371,5894,991,0001,996,0002,269,184
9Dec 13, 2024 15:097,95826,385,9875,002,0002,001,0002,318,336