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 18, 2024 20:33zielajzielajScore: 5,088Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 18, 2024 21:314,66316,334,6123,283,000820,0002,269,184
2Dec 18, 2024 21:264,73120,667,3892,498,0001,665,0002,519,040
3Dec 18, 2024 21:264,75719,922,0153,140,0001,046,0002,531,328
4Dec 18, 2024 20:334,94122,581,9942,174,0002,174,0002,510,848
5Dec 18, 2024 21:315,08822,135,7463,358,0001,119,0002,510,848
6Dec 18, 2024 20:335,19519,257,0863,429,0001,143,0002,510,848
7Dec 18, 2024 20:335,25720,050,2443,470,0001,156,0002,510,848
8Dec 18, 2024 21:315,38926,207,8374,742,00002,506,752
9Dec 18, 2024 21:265,50123,707,2793,631,0001,210,0002,510,848