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 listJan 13, 2026 22:50vahookvahookScore: 4,905Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 13, 2026 22:514,84117,697,2573,195,0001,065,0002,277,376
2Jan 13, 2026 22:514,89323,703,4703,230,0001,076,0002,498,560
3Jan 13, 2026 22:504,90518,372,0593,237,0001,079,0002,498,560
4Jan 13, 2026 22:504,90523,631,6523,237,0001,079,0002,498,560
5Jan 13, 2026 22:514,91920,545,4903,247,0001,082,0002,498,560
6Jan 13, 2026 22:504,99716,837,2573,298,0001,099,0002,502,656