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 24, 2024 22:11zielajzielajScore: 4,072Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2024 22:114,03423,978,7913,550,00002,457,600
2Dec 24, 2024 22:114,05020,980,3012,376,0001,188,0002,457,600
3Dec 24, 2024 22:114,07021,917,6312,388,0001,194,0002,461,696
4Dec 24, 2024 22:114,07220,228,8923,583,00002,334,720
5Dec 24, 2024 22:114,07226,719,5272,389,0001,194,0002,273,280
6Dec 24, 2024 22:114,07820,919,4692,393,0001,196,0002,535,424
7Dec 24, 2024 22:114,11321,568,7362,413,0001,206,0002,297,856
8Dec 24, 2024 22:114,11718,000,1413,623,00002,457,600
9Dec 24, 2024 22:114,11924,850,0073,625,00002,457,600