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 listMar 1, 2025 16:33wainCGPwainCGPScore: 26,566Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 1, 2025 16:3326,40044,672,25321,212,0002,020,0002,289,664
2Mar 1, 2025 16:3326,46646,384,75121,265,0002,025,0002,289,664
3Mar 1, 2025 16:3326,48351,645,62621,279,0002,026,0002,289,664
4Mar 1, 2025 16:3326,50349,826,00622,309,0001,014,0002,289,664
5Mar 1, 2025 16:3326,56645,775,01821,346,0002,032,0002,269,184
6Mar 1, 2025 16:3326,63148,072,24323,435,00002,277,376
7Mar 1, 2025 16:3326,67443,616,42822,453,0001,020,0002,277,376
8Mar 1, 2025 16:3326,67652,778,81922,455,0001,020,0002,273,280
9Mar 1, 2025 16:3326,73552,122,53223,527,00002,289,664