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 listNov 5, 2025 18:04izotoffizotoffScore: 1,722,538Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 5, 2025 18:041,713,0701,530,609,0951,506,503,000999,0002,277,376
2Nov 5, 2025 18:041,716,1011,531,223,4051,508,171,0001,998,0002,277,376
3Nov 5, 2025 18:041,717,4111,536,075,1141,510,323,000999,0002,285,568
4Nov 5, 2025 18:041,717,5221,533,672,4671,509,420,0001,999,0002,269,184
5Nov 5, 2025 18:041,722,5381,542,861,3901,514,834,000999,0002,285,568
6Nov 5, 2025 18:041,723,3181,542,950,7161,513,521,0002,999,0002,260,992
7Nov 5, 2025 18:041,723,8951,542,335,7231,516,028,0001,000,0002,285,568
8Nov 5, 2025 18:041,725,5551,541,566,7271,516,489,0001,999,0002,265,088
9Nov 5, 2025 18:041,738,0571,553,214,1921,529,490,00002,285,568