3 ms·
It uses a string of '1' as a unary numeral representation of a number and then checks it for divisibility with 2,3,4... using brute force.
by nsajko 12y ago
It uses a string of '1' as a unary numeral representation of a number and then checks it for divisibility with 2,3,4... using brute force.