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 6, 2026 02:02zielajzielajScore: 197,984Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 02:03196,392193,937,231171,827,000998,0002,277,376
2Feb 6, 2026 02:00196,472195,045,257171,896,000999,0002,510,848
3Feb 6, 2026 02:00196,485195,938,530171,908,000999,0002,535,424
4Feb 6, 2026 02:12196,813197,358,872172,194,0001,001,0002,277,376
5Feb 6, 2026 02:01197,125196,366,413173,470,00002,347,008
6Feb 6, 2026 02:02197,522200,863,705172,821,000998,0002,277,376
7Feb 6, 2026 02:03197,782196,755,059173,048,0001,000,0002,277,376
8Feb 6, 2026 02:01197,984197,100,012174,226,00002,277,376
9Feb 6, 2026 02:12198,057196,899,698174,290,00002,277,376
10Feb 6, 2026 02:12198,085198,372,493174,315,00002,527,232
11Feb 6, 2026 02:03198,257198,493,590174,466,00002,535,424
12Feb 6, 2026 02:00199,409193,477,642175,480,00002,367,488
13Feb 6, 2026 02:01199,542204,936,205175,597,00002,277,376
14Feb 6, 2026 02:02232,477231,747,427204,580,00002,355,200
15Feb 6, 2026 02:02282,886274,325,443247,941,000999,0002,277,376