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 29, 2024 15:42zielajzielajScore: 3,738Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2024 15:423,58819,398,4171,052,0002,105,0002,473,984
2Dec 29, 2024 16:203,69024,134,4922,165,0001,082,0002,449,408
3Dec 29, 2024 16:203,71323,039,8201,089,0002,178,0002,465,792
4Dec 29, 2024 16:203,73821,354,1572,193,0001,096,0002,453,504
5Dec 29, 2024 15:423,80920,607,2062,235,0001,117,0002,469,888
6Dec 29, 2024 15:423,80919,869,7802,235,0001,117,0002,465,792