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 7, 2025 17:15wainCGPwainCGPScore: 23,328Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 7, 2025 17:1523,23049,245,31719,420,0001,022,0002,269,184
2Mar 7, 2025 17:1523,26646,758,21419,451,0001,023,0002,273,280
3Mar 7, 2025 17:1523,28444,026,15119,466,0001,024,0002,277,376
4Mar 7, 2025 17:1523,32644,047,71920,527,00002,269,184
5Mar 7, 2025 17:1523,32862,489,17519,503,0001,026,0002,277,376
6Mar 7, 2025 17:1523,39848,427,32019,561,0001,029,0002,289,664
7Mar 7, 2025 17:1523,43950,967,97919,595,0001,031,0002,273,280
8Mar 7, 2025 17:1523,44843,803,13920,634,00002,273,280
9Mar 7, 2025 17:1523,56451,785,30119,700,0001,036,0002,277,376