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 listFeb 28, 2026 22:05zielajzielajScore: 3,317Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 28, 2026 22:053,12818,226,8432,753,00002,277,376
2Feb 28, 2026 22:063,13619,682,4592,760,00002,277,376
3Feb 28, 2026 22:063,14516,951,3842,768,00002,420,736
4Feb 28, 2026 22:063,16523,620,2862,785,00002,424,832
5Feb 28, 2026 22:053,29018,658,2201,930,000965,0002,424,832
6Feb 28, 2026 22:063,31528,297,3311,945,000972,0002,416,640
7Feb 28, 2026 22:053,31722,035,3981,946,000973,0002,416,640
8Feb 28, 2026 22:063,60125,752,1552,113,0001,056,0002,277,376
9Feb 28, 2026 22:053,70618,220,0513,261,00002,535,424
10Feb 28, 2026 22:063,77422,111,4963,321,00002,420,736
11Feb 28, 2026 22:053,80818,536,9623,351,00002,424,832
12Feb 28, 2026 22:053,84323,608,0383,382,00002,416,640