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 7, 2024 08:48E SequeiraE SequeiraScore: 2,374,620Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 7, 2024 08:482,360,8982,101,931,5582,076,591,000999,0002,322,432
2Dec 7, 2024 08:482,374,6202,112,710,4702,087,667,0001,999,0002,322,432
3Dec 7, 2024 08:482,381,9172,126,698,0492,096,087,00002,465,792