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 14, 2024 16:35zielajzielajScore: 6,731Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 16:356,69921,111,1214,913,000982,0002,510,848
2Dec 14, 2024 16:356,72321,359,2034,930,000986,0002,355,200
3Dec 14, 2024 16:356,72622,795,3314,933,000986,0002,510,848
4Dec 14, 2024 16:356,72822,362,0835,921,00002,531,328
5Dec 14, 2024 16:356,73125,350,6333,949,0001,974,0002,510,848
6Dec 14, 2024 16:356,73426,399,1323,951,0001,975,0002,510,848
7Dec 14, 2024 16:356,74425,426,5935,935,00002,269,184
8Dec 14, 2024 16:356,89126,252,7864,043,0002,021,0002,510,848
9Dec 14, 2024 16:356,90019,252,2594,048,0002,024,0002,510,848