Values · Value
Prime check
Whether a whole number is prime, its prime factors, and the next prime above it.
math.prime_check
In a flow
“Works out prime check whenever a step wired to it needs the answer.”
91 → not prime: 7 x 13
What it does
Whether a whole number is prime, its prime factors, and the next prime above it. It's a value node: no white pins, it works out its answer when a step wired to it needs it. It gives 3 values later steps can use. Find it under Values in the palette.
When to use it
Use it when a step needs a value worked out first: whether a whole number is prime, its prime factors, and the next prime above it.
When not to
For a value that never changes, type it into the setting instead of wiring a node.
Typical wiring
Sockets: settings you can wire
- Number Number
-
A whole number up to a trillion.
What goes there: Type it in the side panel, or wire in a number. e.g. 42
If it's empty: Optional. Left empty and unwired, it uses 91.
Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 500 more
Values it gives
- Prime Yes / no
-
On when it is prime. e.g. off
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAdd a forum tagAdd onboarding questionAdd to a counterAlarms that are dueAndAutoMod: Discord's word listsBluesky latest postBoard as emojiand 573 more
- Prime factors List
-
Smallest first, with repeats. e.g. [7, 13]
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAdd onboarding questionAdd to listAdd up timesAutoMod: add or remove allowed wordsAutoMod: add or remove wordsAutoMod: block wordsBar chartBest by a fieldand 88 more
- Next prime Number
-
The first prime above it. e.g. 97
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 718 more