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 15, 2024 18:59zielajzielajScore: 5,830Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2024 18:595,74524,495,6754,045,0001,011,0002,531,328
2Dec 15, 2024 18:595,75218,719,7884,050,0001,012,0002,351,104
3Dec 15, 2024 18:595,77621,805,1754,067,0001,016,0002,351,104
4Dec 15, 2024 18:595,82626,067,9624,102,0001,025,0002,506,752
5Dec 15, 2024 18:595,83020,738,3264,104,0001,026,0002,510,848
6Dec 15, 2024 18:595,86421,523,6404,128,0001,032,0002,506,752
7Dec 15, 2024 18:595,87320,615,6024,135,0001,033,0002,510,848
8Dec 15, 2024 18:595,99522,550,2694,221,0001,055,0002,506,752
9Dec 15, 2024 18:596,00324,000,8543,170,0002,113,0002,506,752