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 03:07zielajzielajScore: 8,483Success
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 03:048,30626,230,0026,265,0001,044,0002,297,856
2Dec 13, 2024 03:078,31627,838,2107,318,00002,269,184
3Dec 13, 2024 03:048,35024,227,8406,299,0001,049,0002,531,328
4Dec 13, 2024 03:078,48324,444,7746,399,0001,066,0002,269,184
5Dec 13, 2024 03:078,50522,763,8356,415,0001,069,0002,531,328
6Dec 13, 2024 03:048,83426,716,3876,664,0001,110,0002,531,328