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 12, 2024 21:50zielajzielajScore: 9,583Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 21:509,48020,888,8168,342,00002,531,328
2Dec 12, 2024 21:509,50530,301,7688,364,00002,269,184
3Dec 12, 2024 21:509,51524,419,4228,373,00002,330,624
4Dec 12, 2024 21:509,54322,847,7997,349,0001,049,0002,269,184
5Dec 12, 2024 21:509,58329,029,7998,433,00002,531,328
6Dec 12, 2024 21:509,58322,469,7337,379,0001,054,0002,531,328
7Dec 12, 2024 21:509,60529,551,1997,396,0001,056,0002,330,624
8Dec 12, 2024 21:509,64028,081,7458,483,00002,531,328
9Dec 12, 2024 21:5010,29122,306,2157,044,0002,012,0002,326,528