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 19, 2025 10:20Wookyung JeongWookyung JeongScore: 7,373,600Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2025 10:207,302,6516,452,668,7676,422,335,0003,998,0002,285,568
2Dec 19, 2025 10:207,340,9436,491,609,0796,459,031,000999,0002,277,376
3Dec 19, 2025 10:207,352,4676,498,208,7226,466,174,0003,997,0002,277,376
4Dec 19, 2025 10:207,372,1456,513,174,1746,486,489,000999,0002,277,376
5Dec 19, 2025 10:207,373,6006,513,647,9216,486,769,0001,999,0002,277,376
6Dec 19, 2025 10:207,398,8146,535,898,9376,507,957,0002,999,0002,285,568
7Dec 19, 2025 10:207,402,6896,545,086,3356,513,367,000999,0002,277,376
8Dec 19, 2025 10:207,423,2016,558,420,2966,530,418,0001,999,0002,277,376
9Dec 19, 2025 10:207,440,2176,572,578,9616,544,393,0002,998,0002,277,376