Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

71%
+3 −0
Challenges It's Hip to be Square

Japt, 6 3 bytes Cut in half thanks to Shaggy! ¬v1 Try it online! Golfed thanks to Shaggy's interpreter auto-golf feature. ¬v1 ¬ //Square root v1 //Is that an integer?

posted 3y ago by user‭  ·  edited 3y ago by Shaggy‭

Answer
#3: Post edited by user avatar Shaggy‭ · 2021-08-06T12:58:22Z (over 3 years ago)
  • # Japt, <s>6</s> 3 bytes
  • Cut in half thanks to Shaggy!
  • ```
  • ¬v1
  • ```
  • [Try it online!](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=rHYx&input=WzAgMSA2NCA4OCAyMTQ3NDgzNjQ3XQotbVM)
  • Golfed thanks to [Shaggy's interpreter](https://petershaggynoble.github.io/Japt-Interpreter/)'s auto-golf feature.
  • ```
  • ¬v1
  • ¬ //Square root
  • v1 //Is that an integer?
  • ```
  • # Japt, <s>6</s> 3 bytes
  • Cut in half thanks to Shaggy!
  • ```
  • ¬v1
  • ```
  • [Try it online!](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=rHYx&input=WzAgMSA2NCA4OCAyMTQ3NDgzNjQ3XQotbVM)
  • Golfed thanks to [Shaggy](https://codegolf.codidact.com/users/53588)<s>'s interpreter auto-golf feature</s>.
  • ```
  • ¬v1
  • ¬ //Square root
  • v1 //Is that an integer?
  • ```
#2: Post edited by user avatar user‭ · 2021-08-05T13:56:27Z (over 3 years ago)
  • # Japt, 6 bytes
  • ```
  • ¬u1 ¥0
  • ```
  • [Try it online!](https://ethproductions.github.io/japt/?v=1.4.6&code=rHUxIKUw&input=Mw==)
  • Golfed thanks to [Shaggy's interpreter](https://petershaggynoble.github.io/Japt-Interpreter/)'s auto-golf feature.
  • ```
  • ¬u1 ¥0
  • ¬ //Square root
  • u1 //% 1
  • ¥0 //Is that 0?
  • ```
  • # Japt, <s>6</s> 3 bytes
  • Cut in half thanks to Shaggy!
  • ```
  • ¬v1
  • ```
  • [Try it online!](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=rHYx&input=WzAgMSA2NCA4OCAyMTQ3NDgzNjQ3XQotbVM)
  • Golfed thanks to [Shaggy's interpreter](https://petershaggynoble.github.io/Japt-Interpreter/)'s auto-golf feature.
  • ```
  • ¬v1
  • ¬ //Square root
  • v1 //Is that an integer?
  • ```
#1: Initial revision by user avatar user‭ · 2021-08-05T13:32:17Z (over 3 years ago)
# Japt, 6 bytes
```
¬u1 ¥0
```
[Try it online!](https://ethproductions.github.io/japt/?v=1.4.6&code=rHUxIKUw&input=Mw==)

Golfed thanks to [Shaggy's interpreter](https://petershaggynoble.github.io/Japt-Interpreter/)'s auto-golf feature.

```
¬u1 ¥0
¬      //Square root
 u1    //% 1
    ¥0 //Is that 0?
```