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 listDec 4, 2025 21:30Yehor BondarYehor BondarScore: 3,416,236Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 4, 2025 21:303,377,0073,002,475,4602,967,768,0003,998,0002,285,568
2Dec 4, 2025 21:303,403,0063,021,471,4042,992,646,0001,999,0002,510,848
3Dec 4, 2025 21:303,409,0453,031,044,5112,997,961,0001,999,0002,277,376
4Dec 4, 2025 21:303,410,4023,026,755,9372,998,155,0002,999,0002,519,040
5Dec 4, 2025 21:303,416,2363,034,394,1503,005,289,000999,0002,285,568
6Dec 4, 2025 21:303,417,1823,034,715,7253,006,121,000999,0002,285,568
7Dec 4, 2025 21:303,419,1173,034,039,2393,007,824,000999,0002,363,392
8Dec 4, 2025 21:303,421,7993,037,036,6233,010,184,000999,0002,510,848
9Dec 4, 2025 21:303,428,1563,044,950,9303,015,778,000999,0002,285,568