Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 111059

Number theory involves properties and relationships of numbers, primarily positive integers.

1 vote

Ellipse Lattice Point Counter

Uiua, 43 41 bytes Returns the number of interior points on the top of the stack, and the number of boundary points on the bottom. ∩/+<1:=1./+ⁿ2÷:-⍉☇1⇡+1×2..⊂ Try It ∩/+<1:=1./+ⁿ2÷:-⍉☇1⇡+1×2..⊂ …
Maxim Khanov's user avatar
0 votes

Sophie Safe primes

Uiua, 63 Bytes ▽⍥×3∩∩∵(¬∊0↘2◿⇡.)⌊÷2:+1×2⍥.4↘3+1⇡ Try It ▽⍥×3∩∩∵(¬∊0↘2◿⇡.)⌊÷2:+1×2⍥.4↘3+1⇡ +1⇡ # generate all numbers from [1, n] ↘3 # drop …
Maxim Khanov's user avatar