Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
When a prime isn't a factor the node passes on the N value to try with the next prime, or to the OUT node to be sent as the last prime factor and end the sequence with a zero. These N values are negated so they are seen as different than the prime factors and handled differently.
When an N is factored completely by 2, 3, 5, or 7, a -1 is passed on and each subsequent front node will do a little unnecessary work before passing it on and the OUT node turns that into a terminating zero.
The overall idea is to have 4 pairs of nodes with each pair focusing on a single possible prime factor: 2, 3, 5, and 7. These are the only primes needed in this challenge because the next prime is 11 and its square is 121 and none of the values can reach 121 because they're limited to two digit numbers.