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 listOct 9, 2026 17:34Karthik ReddyKarthik ReddyScore: 2,522Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2026 17:562,50010,841,9152,200,000024,576
2Oct 9, 2026 17:562,51210,833,8972,211,000024,576
3Oct 9, 2026 17:562,51813,076,8872,216,000024,576
4Oct 9, 2026 17:562,51911,100,2982,217,000024,576
5Oct 9, 2026 17:562,52211,107,2242,220,000024,576
6Oct 9, 2026 17:562,52510,867,7772,222,000024,576
7Oct 9, 2026 17:562,53010,893,9392,227,000024,576
8Oct 9, 2026 17:562,53810,858,4972,234,000024,576
9Oct 9, 2026 17:562,54010,868,8062,236,000024,576