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 listJan 24, 2026 02:52zielajzielajScore: 3,453Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 24, 2026 02:523,34118,397,8371,960,000980,0002,351,104
2Jan 24, 2026 02:503,37618,164,4131,981,000990,0002,277,376
3Jan 24, 2026 02:523,39317,984,9181,991,000995,0002,277,376
4Jan 24, 2026 02:503,39920,190,8551,994,000997,0002,367,488
5Jan 24, 2026 02:503,40923,593,1952,000,0001,000,0002,355,200
6Jan 24, 2026 02:513,43021,193,7971,006,0002,012,0002,355,200
7Jan 24, 2026 02:503,44718,722,1232,022,0001,011,0002,273,280
8Jan 24, 2026 02:523,45320,310,7942,026,0001,013,0002,355,200
9Jan 24, 2026 02:513,46415,891,7341,016,0002,032,0002,363,392
10Jan 24, 2026 02:513,47021,832,8142,036,0001,018,0002,355,200
11Jan 24, 2026 02:503,48520,445,5502,045,0001,022,0002,363,392
12Jan 24, 2026 02:503,50220,359,2702,055,0001,027,0002,277,376
13Jan 24, 2026 02:523,51617,695,7721,031,0002,063,0002,359,296
14Jan 24, 2026 02:524,26119,140,1752,500,0001,250,0002,355,200
15Jan 24, 2026 02:524,31917,914,4602,534,0001,267,0002,347,008