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 14, 2026 02:44vahookvahookScore: 4,655Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 14, 2026 02:444,63224,052,1412,038,0002,038,0002,531,328
2Jan 14, 2026 02:444,63422,297,1162,039,0002,039,0002,277,376
3Jan 14, 2026 02:444,64520,679,3592,044,0002,044,0002,486,272
4Jan 14, 2026 02:444,65216,610,8602,047,0002,047,0002,281,472
5Jan 14, 2026 02:444,65520,577,6912,048,0002,048,0002,281,472
6Jan 14, 2026 02:444,65918,868,8472,050,0002,050,0002,281,472
7Jan 14, 2026 02:444,66122,399,3682,051,0002,051,0002,281,472
8Jan 14, 2026 02:444,68022,261,4942,059,0002,059,0002,281,472
9Jan 14, 2026 02:444,68422,054,9492,061,0002,061,0002,277,376