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 28, 2024 16:53zielajzielajScore: 3,748Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2024 16:533,61522,760,7762,121,0001,060,0002,465,792
2Dec 28, 2024 16:533,71717,720,8273,271,00002,453,504
3Dec 28, 2024 16:533,73116,973,9322,189,0001,094,0002,457,600
4Dec 28, 2024 16:533,74017,403,8792,194,0001,097,0002,453,504
5Dec 28, 2024 16:533,74821,505,6462,199,0001,099,0002,457,600
6Dec 28, 2024 16:533,76121,734,5952,207,0001,103,0002,453,504
7Dec 28, 2024 16:533,77220,216,7692,213,0001,106,0002,465,792
8Dec 28, 2024 16:533,80520,383,5902,232,0001,116,0002,531,328
9Dec 28, 2024 16:533,89120,357,3072,283,0001,141,0002,461,696