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 listMay 6, 2026 18:45olliecrowolliecrowScore: 12,356Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 6, 2026 18:4712,17527,783,85610,714,00002,412,544
2May 6, 2026 18:4712,32926,486,75010,850,00002,412,544
3May 6, 2026 18:4712,34325,981,13710,862,00002,400,256
4May 6, 2026 18:4712,35226,660,09910,870,00002,420,736
5May 6, 2026 18:4712,35625,736,00110,874,00002,412,544
6May 6, 2026 18:4712,37126,111,00310,887,00002,412,544
7May 6, 2026 18:4712,37725,072,57110,892,00002,400,256
8May 6, 2026 18:4712,38628,189,1679,844,0001,056,0002,416,640
9May 6, 2026 18:4712,39226,379,83710,905,00002,420,736